Writing a query that may require a pivot but include [month, year] in the column and RiskGrades, no aggregate?
Hello
new to oracle/mark. I need to write a query that will pull the customer details and on the columns, it will have the month-year: Jan2015, Feb2015... Dec2015.
on the lines, it will contain the details of the client. the information it will provide are the categories of risk to each month.
I create a query, but it uses a function to update and is very slow. There are approximately 3000 documents. An update of column required 15 minutes or even more. so an update of column takes 15 minutes * 9 to update until September.
the best ways to manage this demand?
my query is:
UPDATE tmpRiskGrades one
SET a.feb2015 =)
Select l.risk_grade
of rep_loanportfolio l
where a.agreementno = l.agreeement_no AND l.dtuserdatetime = February 28, 2015 ")
Certainly, that looks like a pivot base for me. Assuming that dtuserdatetime is actually a date data type, something like that will not work in your version of non-recognition:
Select customer_no, agreeement_no, customer_address, loan_type region,
Max (case when dtuserdatetime = to_date (Jan 31, 2015 "," DD month yyyy ' "))
end of the era risk_grade) jan2015,.
Max (case when dtuserdatetime = to_date (February 28, 2015 "," DD month yyyy ' "))
then risk_grade end) Feb2015,
...
of rep_loanportfolio l
where loan_type = "HOME LOAN" and
account_status = 'LIVE' and
dtuserdatetime between to_date (Jan 31, 2015 "," DD month yyyy ' ") and
TO_DATE (31 Dec 2015 "," DD month yyyy ' ")
Group of customer_no, agreeement_no, customer_address, region loan_type
order of region loan_type, customer_no, agreeement_no, customer_address
If you are on 11.2 or higher, you could look at the PIVOT keyword, which is a more concise expression of the same thing.
John
Tags: Database
Similar Questions
-
original title: Log - on password problems.
Windows Fix - it has determined that control UAC is disabled, but I'm invited for the password at each newspaper. I am also asked to be renewed regularly.
I try to remove this password to logon, but can't as Windows claims that I use the wrong password to allow editing. I use the same password that I used to connect. How to spend it?
If you are not an administrator, then we cannot help you.
Here is the link to MS Answers political Protection of Passwrod srtict:
http://answers.Microsoft.com/en-us/Windows/Forum/windows_vista-security/keeping-passwords-secure-Microsoft-policy-on/3eba3150-8742-4264-be9f-0daaad2282cdIf you ARE the admin, then take a look at this tutorial:
Expiration of password in Vista
http://www.Vistax64.com/tutorials/96092-password-expiration-Vista.htmlLog in automatically -
* Original title: Microsoft Firewall
I read that Windows has a built-in firewall. I disabled MS Security Essentials that I use another antivirus - but I like to keep the firewall. How can I determine if it is effective? If this is not the case, how can I activate it?
(Moved to programs)
You cannot run the Windows Firewall and any other 3rd party firewall at the same time. By default, most if not all AV software (competent) devs teams to automatically disable the Windows Firewall when their own is installed to avoid unnecessary conflicts that would occur if both have been enabled at the same time.
If you want to have the Windows Firewall, you will need to uninstall your antivirus (if it comes with a firewall) 3rd party. If this isn't the case, then you can keep the Windows Firewall is turned on, because it's good.
-
Since 69 days ago, I bought a dreamweaver license, I have charged me twice and I can't use it. I couldn't activate it because it says that my trial period has expired. I paid for the license, and there is no way to use or discuss with you for technical service. Within three days, they will return to load a month without being able to use the program.
Your subscription to cloud shows correctly on your account page?
If you have more than one email, you will be sure that you use the right Adobe ID?
https://www.adobe.com/account.html for subscriptions on your page from Adobe
.
If Yes
Sign out of your account of cloud... Restart your computer... Connect to your paid account of cloud
-Connect using http://helpx.adobe.com/x-productkb/policy-pricing/account-password-sign-faq.html
-http://helpx.adobe.com/creative-cloud/kb/sign-in-out-creative-cloud-desktop-app.html
-http://helpx.adobe.com/x-productkb/policy-pricing/activation-network-issues.html
-http://helpx.adobe.com/creative-suite/kb/trial--1-launch.html
-ID help https://helpx.adobe.com/contact.html?step=ZNA_id-signing_stillNeedHelp
-http://helpx.adobe.com/creative-cloud/kb/license-this-software.html
.
If no
This is an open forum, Adobe support... you need Adobe personnel to help
Adobe contact information - http://helpx.adobe.com/contact.html
Chat/phone: Mon - Fri 05:00-19:00 (US Pacific Time)<=== note="" days="" and="">===>
-Select your product and what you need help with
-Click on the blue box "still need help? Contact us. "
-
I disabled Adobe on my old computer so that I could download in my new. I have the disc and the serial number, but then a window came during deactivation to change my proxy settings, which I do not know how. However, the version on was on my old computer is deleted but I can't load to my other because it gives me a message that I have exceeded my limit. My limit is 3 computers and now I have 2 and want to download to my new. HELP I can send you the serial number
You are allowed to have two active facilities. You need to contact Adobe support via chat and ask them to reset your activations.
Chat support - the link below click the still need help? the option in the blue box below and choose the option to chat...
Serial number and activation support (non - CC) chat
http://helpx.Adobe.com/x-productkb/global/Service1.html ( http://adobe.ly/1aYjbSC ) -
@AdobeSupport
I paid for a month to inspect the Adobe and the Chrome plugin is still telling me that I have to upgrade. I need this job.
Thank you.
SOLUTION:
In my case I had to uninstall the Adobe Edge inspect exe (Windows) of the control panel. Uninstall the Plugin Chrome and quit the installer of creative cloud.
I then restarted the CC Setup program, then I'm went to the Adobe download page inspect, clicked on the download button, THEN installed the Plugin Chrome.
I guess that when in doubt, reinstall everything.
-
Installation and first run of the FF, I get a collection box that is displayed for about 5 seconds after the program loads and displays the first screen. It obviously requires a response, but it contains no words. The box doesn't cause any Word show either. the screen takes over and no other button cannot be clicked: I have a hardware failure on FF.
Empty the gray bar, box, box white, question mark?
This irritating box was related to an add-on for AOL. In order to remove the extension of the problem, you will probably need to start Firefox in Safe Mode so that it does not work.
You need to close Firefox anyway, you can, for example:
- ALT + F4
- Right click of its mosaic on the taskbar > close all windows
- (Ctrl + Shift + Esc) Task Manager
To start Firefox in Safe Mode, hold down the SHIFT key while double-clicking the shortcut.
A small dialog box should appear. Click on 'Start mode safe' (not update).
Then you can go to the Add-ons page using either:
- CTRL + SHIFT + a
- "3-bar" menu button (or tools) > Add-ons
In the left column, click Extensions. Then on the right, locate AOL.
A little luck?
-
Œuvres SQL query to MS SQL Server 2008, but not when you use the database kit
I have this SQL query:
DECLARE TABLE (@DataTypeTable)
Name varchar (128).
TypeID INT)-Add comma delimeted type data in the temporary table names
INSERT INTO @DataTypeTable (name)
SELECT * from WhatWeShouldDoRead.func_Split (@DataTypeTrimmed, ',')SELECT the name OF @DataTypeTable
That takes a comma delimited by the string and returns the string as a table. It works correctly in Microsoft SQL Server Management Studio. When I run this as a stored procedure I return nothing. There are no errors, SQL or otherwise. I checked that I am connected to the correct database and the stored procedure is responsible without changing any error chain which is reported of this stored procedure (that code is not shown in the example above). Has anyone seen this problem before, or have experience with SQL/Labview interfaces to tell me what I am doing wrong?
Thanks in advance.
-
Query to get the data of the column and the metadata in the same set of results.
Is it possible to build a query to get the values of the columns in a table and also be able to get some metadata (data type, data_length, data_precision, data_scale) for columns in the same set of results.If I use a join, have a common value to join on the two tables?
you use a cross join, not requiring common values.
create table T (n number, d date, v varchar2(30)); insert into T values (1,sysdate,'ABC'); commit; select C.column_name, c.data_type, c.data_length, case c.column_id when 1 then to_char(T.N) when 2 then to_char(T.D) when 3 then T.V end VALUE from USER_TAB_COLUMNS C, T where C.table_name='T' order by c.column_id;
-
Every time I open Firefox, I get a message that an update is available, but when I click on update, nothing happens.
I have a Mini Mac OS X, version 10.6.8
I have a 1.83 GHz Intel Core 2 Duo
It is 2.5 GB 667 MHz DDR2 SDRAM memory.
I don't know what all this means, but I thought you should know that. Thank you.
If he has problems with the update or with the permissions then best is to download the full version and trash the version currently installed to do a fresh install of the new version.
Download a new copy of the Firefox application and save the file on the desktop disk image (dmg)
- 22.0 Firefox: http://www.mozilla.org/en-US/firefox/all.html
- Basket of the current application of Firefox (for example, open the Applications folder in Finder and drag the Firefox application to the trash) to do a clean install (re) -
- Install the new version you downloaded
- https://support.Mozilla.org/KB/installing+Firefox+on+Mac
Your personal data are stored in the Firefox profile folder, so you will not lose your bookmarks and other data to personal when you uninstall and (re) install Firefox.
-
I have autocad 2004 that installs on windows 7, but I can't register the product
AutoCAD lt 2004 is running on windows xp how ever when loaded on windows 7 it wont let me register the product that allows only a 30 day trial
Try to open the program using compatibility and the attempt to save again.
You can find more information on compatibility modes in the articles below:
http://Windows.Microsoft.com/en-us/Windows7/what-is-program-compatibility
http://Windows.Microsoft.com/en-us/Windows7/make-older-programs-run-in-this-version-of-Windows
-
I want to use my own copy of the 6 of Lightroom, but I get a notice in gold that my trial has expired. How can I get rid of this notice? I have found that I can quit Lr and import photos, but the notice appears back if I leave LR
Hi jgsr,
You must get the prompt on Lightroom try mobile has expired.
Please refer to this thread Annoying "disconnected (e) mobile Lightroom" dialogue started Lightroom. and disable this prompt.
Kind regards
Assani
-
Why blurry images that I place in CP5, but they look fine in the preview?
I don't know if I'm doing something wrong our there is a frame, I'm not finding.
Sorry, but all the images are rasterized. That means bitmap. And if you have a bitmap image to something else that 100% inevitably a loss you of detail and clarity.
The degree to which he suffers depends on the degree you are scaling.
See you soon... Rick
Useful and practical links
Begin to learn Captivate 5 times now! $29.95
Captivate wish form/Bug report form
-
I just loaded a new Firefox. It does not open.
Hi pirkkob,
You can take a look at the article in the Knowledge Base for the error message "Firefox is already running but is not responding" - how to fix . Another could be useful is article on issues from Firefox. There are lots of good information in there.
Hope this helps!
-
I've upgraded to firefox 8.0.1 and now my favorites have only the icons and no text. By clicking on "icons and text" in PREFERENCES, affects only the Google toolbar and not Firefox bookmarks.
How to restore the icons and text to my "bookmarks toolbar"?Start Firefox in Firefox to solve the issues in Safe Mode to check if one of the extensions or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > appearance/themes).
- Makes no changes on the start safe mode window.
- https://support.Mozilla.com/kb/safe+mode
Maybe you are looking for
-
Notification of 'Syntax error' constant JavaScript after the upgrade to 17.0
Almost on every page, I opened appears after notification ' error: error of syntax "JavaScript application. Even on this page where I fill in the form.I have to click 'OK' several times to clear.
-
Mail.app keyboard shortcut conflict
Hello I use things to manage tasks on my iMac (OS X El Capitan, up-to-date). Things has a quick entry hotkey-based function to add tasks with AutoFill from anywhere on the Mac. For example, mail.app you can press ⌘⌥⎵ to create a new task with a link
-
How to restore a Satellite A300 PSAGOE?
Sorry if this is in the wrong place or has responded, but one of my friends want me to restore its Satellite A300, the only info that she can give me is that it works on Vista and it's a 03uo1yen of psagoe. She has no records for this laptop. She bou
-
Discrete cards compatibility with HP ENVY h8-1403es
Hello My friend wants to change his 640gt included in a HP ENVY h8-1403es for another graphics card. He wants to install a 770gtx but it seems impossible because of lower power, not enough distance to place it in the pc box and has problems with moth
-
I have a new laptop HP 6735 s, running under Windows XP (SP3). Since the early days, I had a problem with this gel in various situations, for example surf the internet or watch a DVD. Everything stops, and the computer stops responding. The only way