How do I change the display discovered documents and changed to a row
I have a SQL that can count in a day and a month condition(Bad,Poor,Worse) and displays together them as follows:YEARS MONTHS LV COUNTVAL
----- ------ ----- --------
2009 Apr Bad 5
2009 Apr Poor 3
2009 Apr Worse 2
2009 Aug Bad 3
2009 Aug Poor 2
2009 Aug Worse 5
2009 Dec Bad 5
2009 Dec Poor 2
2009 Dec Worse 3
2009 Feb Bad 5
2009 Feb Poor 3
2009 Feb Worse 2
2009 Jan Bad 3
2009 Jan Poor 3
2009 Jan Worse 4
2009 Jul Bad 2
2009 Jul Poor 3
2009 Jul Worse 5
2009 Jun Bad 1
2009 Jun Poor 4
2009 Jun Worse 5
2009 Mar Bad 4
2009 Mar Poor 4
2009 Mar Worse 2
2009 May Bad 3
2009 May Poor 5
2009 May Worse 2
2009 Nov Bad 1
2009 Nov Poor 5
2009 Nov Worse 4
2009 Oct Bad 5
2009 Oct Poor 3
2009 Oct Worse 2
2009 Sep Bad 2
2009 Sep Poor 4
2009 Sep Worse 4
2010 Apr Bad 6
2010 Apr Poor 1
2010 Apr Worse 3
2010 Aug Bad 3
2010 Aug Poor 2
2010 Aug Worse 5
2010 Dec Bad 4
2010 Dec Poor 2
2010 Dec Worse 4
2010 Feb Bad 4
2010 Feb Poor 3
2010 Feb Worse 3
2010 Jan Bad 6
2010 Jan Poor 3
2010 Jan Worse 1
2010 Jul Bad 2
2010 Jul Poor 4
2010 Jul Worse 4
2010 Jun Bad 4
2010 Jun Poor 3
2010 Jun Worse 3
2010 Mar Bad 6
2010 Mar Poor 1
2010 Mar Worse 3
2010 May Bad 4
2010 May Worse 6
2010 Nov Bad 5
2010 Nov Poor 2
2010 Nov Worse 3
2010 Oct Bad 3
2010 Oct Poor 3
2010 Oct Worse 4
2010 Sep Bad 3
2010 Sep Poor 4
2010 Sep Worse 3
The SQL code that I use:select years, months, lv, countVal
from
(
select years, months, lv, count (lv) OVER (PARTITION BY years,months,lv) countVal from
(
SELECT x.years, x.months, x.days, x.lv
FROM airtest,
XMLTABLE ('$d/cdata/name' passing xmldoc as "d"
COLUMNS
years integer path 'year',
months varchar(3) path 'month',
days varchar(2) path 'day',
lv varchar(5) path 'value'
) as X
group by x.years, x.months, x.days, x.lv
order by x.years, x.months, x.days
)
)
group by years, months, lv, countVal
order by years,months
The problem at the moment is the change in this format?YEARS MONTHS Bad Poor Worse
----- ------ ----- -------- --------
2009 Apr 5 3 2
2009 Aug 3 2 5
2009 Dec 5 2 3
.........
.........
Once changed, it will become something like that.You can see the separate data group in a row of each month.
Thanks for the help!
Not tested...
select years, months, sum(decode(lv,'Bad',1,0)) bad,
sum(decode(lv,'Poor',1,0)) poor,
sum(decode(lv,'Worse',1,0)) worse
from
(
SELECT x.years, x.months, x.days, x.lv
FROM airtest,
XMLTABLE ('$d/cdata/name' passing xmldoc as "d"
COLUMNS
years integer path 'year',
months varchar(3) path 'month',
days varchar(2) path 'day',
lv varchar(5) path 'value'
) as X
)
group by years, months
order by years,months
Tags: Database
Similar Questions
-
All of a sudden my shrunken screen size... How can I get the display back to what it was
Hello
Please try this first:
Hold down the CTRL key, and then press on + (plus) sign several times.
I hope this helps.
-
How can I copy the folder my documents in my iCloud drive and then I sync the two after that?
How can I copy the folder my documents in my iCloud drive and then I sync the two after that?
You can simply drag in iCloud reader, but I pass and move documents in their files app instead. It will probably take a while to download all documents.
It is not a way to sync without some third party software that synchronizes folders, or learn how to use rsync in the Terminal.
Instead of synchronization, simply use the iCloud drive in the 'Documents' folder after you move the files.
-
Original title: display the icon on the desktop.
I have fiddled software Adobe Reader in my Windows 7 Premium 32 bit, & now find all desktop program icons are identical. How to return to the display independent icons earlier?
Click on this link to download this registry file
www.SevenForums.com/attachments/Tutorials/159134d1312706820-default-file-type-associations-Restore-default_lnk_-shortcut-.reg
Double-click the registry file
If any Assistant you are prompted, click RUN.
If any Assistant you are prompted, click YES.
If any Assistant you are prompted, click MERGE.
Reboot the PC once you did.
-
I deleted the links to Documents and photos on my start page.
I deleted the links to Documents and photos on my start page. Link names are still there, but they are going nowhere. How is it possible to recreeate the new links that are actually going to My Documents and pictures? I also cleaned my basket so that is no longer an option.
Try this to return to the system settings to before you changed anything.
Restore point:
http://www.howtogeek.com/HOWTO/Windows-Vista/using-Windows-Vista-system-restore/
Do Safe Mode system restore, if it is impossible to do in Normal Mode.
Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.
Try a restore of the system once, to choose a Restore Point prior to your problem...
Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.
http://www.windowsvistauserguide.com/system_restore.htm
Read the above for a very good graph shows how backward more than 5 days in the System Restore Points by checking the correct box.
See you soon.
Mick Murphy - Microsoft partner
-
How can I remove the 'Subscribe now' button and the topic when you see an RSS feed?
How can I remove the 'Subscribe now' button and the topic when you see an RSS feed?
It is a yellow box that appears at the top of the page. It has options to subscribe to the RSS feed displayed.
How can I remove this whole box to display?
Thank you
~ MichelMake sure that the userContent.css file is a CSS (cascading style sheet) file and is not a hidden .txt file extension.
You can use this button to go to the Firefox profile folder:
- Help > troubleshooting information > profile directory: see file
-
How can I fix the following in "Scanner and Camera Wizard" error message an error occurred while setting scanner preferences. I have widows xp pro
Hi Plumbbgp,
1. what brand & model of the scanner?
2. the scanner was working fine before?
3. don't you make changes on your computer before this problem?
Please provide us with more information about the issue so that we can provide you with the necessary assistance.
-
HOW can I FIND THE CARTRIDGES ARE EMPTY AND that it FAULT REPLACE HP printer fax C309 using windows 7
Hello
Please use one of the following methods:
http://support.HP.com/us-en/document/c00257147
Kind regards.
-
How to get all the names of files and extensions to the project Bin
Is that someone familiar with the question below:
How do I get the display of file name and file extension in the field of "Media Browser.
I was working on a plugin, which should detect the files imported into the active project of first.
I know that first store imported files, while only save a link to the actual path of the clip.
If I'm not planning to export xml, how can I get these as info?
HTML5-based panels can get this information, but it is not available via a C++ API (or Objective-C). Write directly to me, and I can give you more information; b b b at adobe dot com.
-
How can I clear the cache in safari and I should do periodically
How can I clear the cache in safari and I should do periodically
Way the easiest is to go to Safari > Preferences > advanced and check the box that says show develop menu in menu bar. Then, go to the develop menu and select empty cache.
The only reason is that if you experience the problem and to increase the storage space available on the disk.
-
Cannot attach email word documents get the message 'enable documents and data '.
Cannot attach a word document to an email. I get the message 'Enable documents and data' and it says that it is disabled. Don't enter iCloud setting there is no Document and data parameter. Is it because I use a free version of work?
Whether the app is the word document?
You can view the document word on the iPad?
-
How can I remove the large green battery and plug icon?
How can I remove the large green battery and plug icon? It seems pretty ugly and useless. There is already an icon of battery-plus-card used to determine the level of battery and charging status...
Moderator edit: matched subject to content.
Hi thang_nguyen!
Another alternative is to double-click the battery icon and when Power Manager opens, click on Advanced Options > Options and uncheck the box "see the gauge of Power Manager in the bar then apply stains.
To access the Lenovo Power Manager when the gauge of Power Manager is disabled, right-click on the Windows icon / energy from the battery in the bar of tasks and you should see "Power Manager".
I hope this helps!
-
How can I fix the link between adobe and windows if I see .pdf not win32 application
How can I fix the link between adobe and windows if I see .pdf not win32 application, without the disc?
"Adobe" is the name of the company that provides a great many different applications.
Adobe Reader is free and allows you to view pdf files.
Adobe Acrobat is expensive and allows you to create, edit and view pdf files.
Assuming that you are referring to the reader, uninstall all the versions of it using the control panel > add or remove programs. Then either
1. go to http://get.adobe.com/reader/?promoid=BUIGO and download the current version (remember to uncheck the box to install McAfee Security Scan Plus.
or
2. go to http://www.foxitsoftware.com/Secure_PDF_Reader/ and download Foxit Reader, a small pdf reader and many more.
Then, install the reader that you have downloaded.
-
How can I set the default font size and type for the outgoing Hotmail mail?
How can I set the default font size and type for the outgoing Hotmail mail?
Hi Dale,
What is the email client do you use?
Outlook can be configured per - start Outlook-> Tools-> Options-> mail-> fixed Format and fonts... Select the font and size you need... Click ok on all screens.
I hope this helps.
-
I recently had a problem with the virus 'Restore Windows'. I was able to get rid of it with Malwarebytes antivirus scanner, but when I turn on my computer I get this error message.Cannot create the folder C:\Documents and Settings\ of Settings\Marlon\Local Application BVRP Software\NetWaiting\MoHlog.txt
I'm no expert, but I feel that my C drive disappeared, or at least has been hidden. My documents, pictures and music files are all empty. My programs (start > all programs) have been removed and deleted the shortcuts on the desktop. When I go to my computer, my personal and shared document files are not accessible. Under the description it says that they are hidden. My local disk (c) is also empty, but there is still very little space which suggests that programs and files have not been deleted.Is it possible to recover my files?Thank youHello
MoHlog.txt file is related to the software of modem on the computer, you can uninstall and reinsta it check if it works.
Also scan your computer for any infection by virus still present on the computer using any scanner online.
You can also try the system restore to the point before that the computer has been infected by the virus and check if it helps.
Good luck!
Maybe you are looking for
-
The upgrade of the power supply for a HP Pavilion 500-054
Hey people, I'm changing the 500-054 flag so that it can play a few games, not a hardcore gamer, just want to be able to play the occasional game. I want to get a lower end external video card, but this requires a power supply greater than 300. I am
-
MacBook air 13 "has no forcetouch? It is a software or hardware built-in to the force click on features?
-
I was hacked twice within 30 days. I have the names of the email accounts that I hacked. What I do with them. On one page of the notification of security password he email accounts are listed to report any change in my account and it wouldn't let me
-
Help please with voicemail blackBerry Smartphones
Just got my new BB torch and can't for the life of me how to configure my voicemail. I'm in Ontario and use Bell for my service.
-
When I try to open Photoshop, I get error 0xc000007b.
Hi, I was recently UN-installing a program and I have chosen, at the last second I hit the uninstall I accidentally selected and unintalled a Visual C++ (Im guessing 2005) program on my Lenovo laptop. I don't know what 2 I uninstalled, I had 4 and no