How to change the display view of the records and modified into a row

I have a SQL which can count the condition(Bad,Poor,Worse) in a day and group it into a month and displays 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        3The SQL that I am using:
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,monthsThe problem for now is how to modify it to become in this format??
YEARS MONTHS   Bad    Poor     Worse
2009 Apr        5        3        2
2009 Aug        3        2        5
2009 Dec        5        2        3
.........After modified, It will become something like this.
You can see the seperated data are group into a row in each month.
Thanks for help!!

Thanks for you suggestion!
But it seems the order become quite strange after i used...
Belows are the display....
YEARS MONTHS BAD POOR WORSE SUM_BY SUM_PY SUM_WY
2009 Jan      3    3     4     39     41     40
2009 Feb      5    3     2     39     41     40
2009 Dec      5    2     3     39     41     40
2009 Nov      1    5     4     39     41     40
2009 Oct      5    3     2     39     41     40
2009 Sep      2    4     4     39     41     40
2009 Aug      3    2     5     39     41     40
2009 Jul      2    3     5     39     41     40
2009 Jun      1    4     5     39     41     40
2009 May      3    5     2     39     41     40
2009 Apr      5    3     2     39     41     40
2009 Mar      4    4     2     39     41     40
2010 Jan      6    3     1     50     28     42
2010 Nov      5    2     3     50     28     42
2010 Oct      3    3     4     50     28     42
2010 Sep      3    4     3     50     28     42
2010 Aug      3    2     5     50     28     42
2010 Dec      4    2     4     50     28     42
2010 Jun      4    3     3     50     28     42
2010 May      4    0     6     50     28     42
2010 Apr      6    1     3     50     28     42
2010 Mar      6    1     3     50     28     42
2010 Feb      4    3     3     50     28     42
2010 Jul      2    4     4     50     28     42
TO_DATE ( years || months, 'yyyyMon', 'NLS_DATE_LANGUAGE=English') ymI have tried to added this statement both in the "SELECT" or end of the sql (as the position of yours "order by"), It does not work...

Similar Messages

  • How can you change the display size on the task bar

    how do you change the display size on the task bar

    If, however, you want to change the size of the display of the menubar, meaning make the icons and text larger, there is no way to do that directly other than to change the resolution of the screen.
    You can change the as-viewed size of that temporarily by using either -
    • Mouse zoom - if you have a Magic Mouse (Apple wireless mouse), hold down the Control key and use the scroll up and scroll down finger gestures on the mouse.
    • Zoom - go to System Preferences > Universal Access > Seeing and turn on Zoom. You can also use the noted keyboard shortcut to enable/disable this Zoom feature.

  • How do I change the display order in the VPN menu in the status bar?

    Hello,
    How do I change the display order in the VPN menu in the status bar?
    (in the drop-down menu from this icon) ->
    Thanks.

    Hello. Perhaps this is because you are trying to arrange the order of many VPN services, since only one VPN service can be selected at once in System Preferences. In my original post, I did not mean that; I meant that I wanted to arrange the order of VPN configurations within a VPN service. In this screenshot, I have one VPN service only:
    And in the following one, it is shown that there are more than one VPN configurations within that VPN service:
    Furthermore, it was the order of VPN configurations that I wanted to change, not the order of VPN services. If you are trying to change the order of VPN services, I do not have a solution.

  • How to display the thumbnail view of the documents in Sharepoint Document Library

    Is there a way that we can have the thumbnail view of the documents that are uploaded in SharePoint Document Library. We have thumbnail feature in Picture Library but can we have the same in Document Library too. Documents includes Words,Excel,PDF.
    Any Suggestions Please 

    Hey Mike,
    Good post, I'd be curious to see if anyone has used the GD Picture SDK with SharePoint, maybe there would be some sample code.
    Hey Kukdai,
    Developing your own solution would potentially provide a better way to accomplish your task, but before setting out on that long road you may want to try the simple customization, it's less time consuming and it will help gauge your customer's interest and
    support.
    Also, there is a wealth of open source code for SharePoint available on CodePlex, you might want to check that out as well.  Here is the linK:
    http://www.codeplex.com/
    Also, here is an interesting project to consider for your task:
    http://enhancedpicture.codeplex.com/
    I hope that helps!
    Tom Molskow SharePoint Architect - If I solved the issue please propose my reply as the answer - Thanks!

  • A gap between letters started to show in my indesgn files. tried to undo with tracking, the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?

    a gap between letters started to show in my indesign files. tried to undo with tracking, then with the paragraph settings. nothing helped. it ruins the fluent view of the document. how can i restore the program so that doesn't happen?
    for example: say i write a paragraph. then, in a weird some sort of way an involuntary gap suddenly appears between different letters of random words(i did not recognize any pattern to the gap appearing) throughout the entire paragraph. once i've double clicked on that paragraph, and made a minor change, lets say tapped a 'space' key, and then clicked ctrl+z to undo, it has aligned(or fixed) the entire paragraph and made it look ok again. i've tried numerous ways to undo the entire thing, but cannot find the reason. i've been working for a few years and there's no reason why this thing all of a sudden should happen right now.
    if anyone has stumbled on something like that and can advise, i would welcome it.
    MNS-KG
    Vadim

    yep...i'm typing with hebrew. i'll make a printscreen with the settings you've asked for@:
    if you look closely you'll see that almost every line has a single letter apart. in hebrew there is no usually a singe letter structured words.

  • How to change button names linked with the 'connect command?'

    Hi,
    I have linked a button in the sequence view to the Exeution entry point 2 (Single Pass) using the 'Connect command'. The button now displays 'Single Pass' as its caption name while running. I want to give a custom name to this button, but it should still be connected to the single pass function. How can rename it?
    Regards
    Gopal

    Hi,
    see this link: http://forums.ni.com/ni/board/message?board.id=330&message.id=7318&query.id=380755#M7318
    You will find the Text for the buttons in one of the ini files. Use the CustomStrings.ini to define your new text, which will override the text defined in the other ini file located in the NI folder when the Operator Interface or SeqEditor first launched and loads the various resources.
    Hope this helps
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How I change my Apple store to the Brazilian store. It is Canadian store now but I want it to be Brazilian.

    How I change my Apple store to the Brazilian store. It is Canadian store now but I want it to be Brazilian.

    Settings>iTunes and App Stores>Apple ID
    Tap your ID
    Tap View Apple ID
    Enter your password
    Go to country/region in the popup window to change the store

  • Change the displayed properties of the StandardSearchResultRender

    Hey,
    I would like to change the displayed properties in the StandardSearchResultRender of the SearchResultSet
    (SearchResultLayoutSet  --> StandardSearchResultRenderer --> Displayed Properties).
    I need a new Link such as Displayed Name of a document (rnd:displayname(contentLink/[1;2-3]/alignTop/space-right=30)).
    For this i made two new properties witch called "newdisplayname" and "newlink". In the StandardSearchResultRendere I added the line "rnd:newdisplayname(newlink/[5;2-3]/alignTop/space-right=30)" in the displayed properties. When I apply my changes the Portal shows me an error (The current configurable is invalid ). I don't know why it's invalid.
    Can anybody help me? How can I made a new link with an reference? Thanks.

    Hi Misel,
    > Is it right, that I can create my own modifier, if I modificate the code?
    In general, yes, but one should have heavy experience if starting to modify SAP code.
    > If yes, where must I modifie the code
    There are different classes, one example would be  com.sapportals.wcm.rendering.resource.cm.ResourceRenderer (that is almost supported to "modify", at least it is supported to create your own ResourceRenderer)
    > Is ther anywhere an example, or an document ore something else?
    No, absolutely not. This is really deep-digging into foreign code which in general is not supported at all by SAP.
    > Or is there an other option to show a link with an other caption?
    The easier way would be to create a property renderer and to implement that or the resource renderer by yourself; this also is officially supported: https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/com.sap.km.cm.docs/library/nw/NetweaverDevelopersGuide2004s/NetWeaverDevelopersGuide2004s_Documents/KM_articles_new/howto/km/flexui/Flexible%20UI%20Components.html
    Hope it helps
    Detlev

  • How can I make GRID view the default view? The icons for view that used to be located in the upper right top of the page near the 'search library' are gone.

    How can I make GRID view the default view? The icons for view that used to be located in the upper right top of the page near the 'search library' are gone.

    99jon wrote:
    Perhaps it’s a design feature to speed up the Organizer launch.
    I am sure it is.
    - The normal use of the Organizer is not the folder view, it's the thumbnail view with an organization based on categories and folder. That way you should forget completely where your pictures are stored. Anyway, the folder view in the Explorer is not a map of the location of the different bits of your file, it's only a logical representation. That's easy to see when you are doing a defragmentation.
    - The folder view is useful even for those using normally the thumbnail view, but that is only for rare cases when you must change the folder organization, for instance moving files to another drive. The folder view is here to prevent you from changing things from the explorer and outside of the Organizer.
    - The new folder list view, which you find 'funny' is there to help better organizing using tags. Its huge advantage is that such a view is created extremely quickly by extracting the last subfolder in the media table : it's the way the database sees the folders, based on its own content,  totally ignoring the complex folder organization of your disk with media files or any unrelated other kind of data. You should use it in many cases, the main purpose being assigning tags when you have assigned descriptive folder names. I had suggested such a solution to prevent the long standing bugs in the folder view of previous versions.
    So yes, the purpose is:
    - to speed up switching modes
    - to help folder organization fans to migrate to tags organization
    - to hopefully get rid of the old folder organization bugs

  • "I would like to know how to set the default view for the columns. Somewhere I read it could be done in by music icon under Library.  Can't find it.  Thanks

    "I would like to know how to set the default view for the columns that are shown in iTunes. Every time I open it, I have to either go to the options, or right-click to get the pop-up options, and delete "rating" and add "composer." I'd really like to just do it once and be done with it."  Somewhere I read you could do this by clicking on the Music icon under LIBRARY then arramge the columns.  Trouble is, I can't find a Musi Folder or icon in my user library.
    Any help would be appreiated.  OSX 10.9.2  iTunes version 11.1.5  Thanks!!! CW!

    From the iTunes menu bar try View>Show View Options.  Make sure what you want to see is checked and what you don't is unchecked.  You can do this (may need to do this) for any playlists, your main Library, etc.
    Good luck
    srb

  • How to set the display size of the PDF - in percent?

    Hi, I wonder if anyone knows if it is possible to set
    the display size of the PDF document, so that it always
    shows in, let´s say 100%, in the viewers browser window?
    Much grateful for any help!
    /Anni

    In Acrobat, under Document Properties (Ctrl+D), you can edit the Initial
    View settings, including the zoom level.

  • How to get the display name of the dropdownlist?

    How can i get the display name of the dropdownlist.
    I want to have value as other data not the same as display name.
    In that case is there any easy way to get the display name of the selection from the dropdownlist.

    I usually just use a hashmap to store the value and label, if I want to retrieve the label again later.
              HashMap bleh = new HashMap();
              bleh.put(dropDownValue, "Drop Down Label"); //Item value (any object), Item Label (String)
              Iterator it = bleh.keySet().iterator();
              while (it.hasNext()) {
                   Object key = it.next();
                   SelectItem selectItem = new SelectItem(key, bleh.get(key));
              //And then later, when you want to retrieve the label
              bleh.get(itemValue); //The item value of the label you wantThe value is easy to get because the selected item(s) from the list will be set to the value(s) the user selected. You should have a getter in your bean for that.
    CowKing
    Message was edited by:
    IamCowKing

  • In mini bridge how do I set the default view to the filmstrip?

    Hello,
    In mini bridge how do I set the default view to the filmstrip?
    Thank you.

    Mark, there's a very basic .NET method on every nullable object:
    GetValueOrDefault
    EDIT: Now I see...please avoid duplicating
    questions...
    To be clear:
    Put GetValueOrDefault on every nullable field used inside your 'TotalDue_Compute' sub
    You don't need to define 'TotalDue' as Nullable anymore

  • How to change datasource name based on the partition in configplan

    Hi
    Can any one please give me some solutions regarding how to change datasource name based on the partition in
    configplan.
    can't we do this in configuration plan?

    If you want to change template based on parameter. you have to use below syntax
    v_layout boolean
    V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP' -- application short name
    ,template_code => 'HUBAPAPN' -- template name
    ,template_language => 'en'
    ,template_territory => '00'
    ,output_format => 'PDF');
    Above can be used in plsql stored procedure before submitting Concurrent Program (Bi Publisher report) or may be you can try to add this code in Oracle reports after report or before report trigger
    Thanks
    Kamalakar

  • Hi! I'd like to purchase PS and LR, when I processing the payment, I find that my Adobe ID registered under US, However, I living in HK, how to change? can't process the payment being I did not have any ZIP code

    Hi! I'd like to purchase PS and LR, when I processing the payment, I find that my Adobe ID registered under US, However, I living in HK, how to change? can't process the payment being I did not have any ZIP code

    Hi Ivanlaiwh,
    I have been doing the modification regarding your account.
    You should now be able to proceed to a new purchase.
    Thanks.
    Arnaud.

Maybe you are looking for

  • Very slow load times

    iMovie 08' is taking almost 2 minutes, sometimes over 2 minutes to load my movies from iPhoto. Once they load there are no issues. My movie library is only 46 minutes total runtime and are not HD so it's not like I have a massive library. Any ideas w

  • Purchasing Groups values not populated in PR default settings - ME51N ??

    Hi, We have SAP R/3 MM ECC 6.0. I want to set Purchasing Group as one of the default parameters in ME51N (Purchasing Requisition) screen. The problem is I have selected 'Purchasing Group' as a default parameter in 'Default Values'/ 'Personal Settings

  • Bypass static creidt limit check during sales order simulation BAPI

    Hello All, We have standard static credit limit check activated.. But, we donot want this to be checked while simulation of standard sales order BAPI... i.e. the check should remain,,, but we have a requirement that the customer should be allowed to

  • Example Code for Routine at Data Target in Info Package.

    Hi, Can any one send the example code for writing the routines at Data Target of Info Package for Deleting the Request from Info Cube after Update. Thanks in Advance, Regards, srinivas

  • Time Machine Deleting old backups after full restore

    So I'm wondering if anyone else came up with this issue: My computer crashed and so I restored my MacBook from Time machine. I've never done this before, but figured it would put everything back to how it was. It did on my hard drive, but my Time mac