For this sample data how to fulfill my requirement ?

For this sample data how to fulfill my requirement ?
with temp as
select 'MON' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'III' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'II' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL
select ?? (what will be the query ??)
How can i get output data in this way :
WEEKDAY TIMING CLASS
MON 9-10 I,II,III
MON 10-11 I,II
TUE 9-10 I,II

If in 11g, you can use LISTAGG
with temp as
select 'MON' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'9-10' TIMING,'III' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'I' CLASS FROM DUAL UNION
select 'MON' WEEKDAY,'10-11' TIMING,'II' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'I' CLASS FROM DUAL UNION
select 'TUE' WEEKDAY,'9-10' TIMING,'II' CLASS FROM DUAL
select
WEEKDAY,
TIMING,
LISTAGG(CLASS,',') WITHIN GROUP (order by 1) as class_aggregate
from temp
GROUP by WEEKDAY,TIMING;
WEEKDAY       TIMING     CLASS_AGGREGATE
MON           9-10       I,II,III
MON           10-11      I,II
TUE           9-10       I,IIOther techniques for different versions are also mentioned here :
http://www.oracle-base.com/articles/misc/StringAggregationTechniques.php#listagg

Similar Messages

  • Just finished using iTunes, closed out and then tried to get back in.  Got this message "he iTunes library .itl file is locked, on a locked disk, or you do not have write permission for this file."  How can I get back into iTunes ?

    I just finished using iTunes, closed out and then tried to get ack in.  Got this message "The iTunes library .9tl file is locked, on a locked disk, or you do not have write permission for this file."   How can I get back ino iTunes ?

    I actually figured it out...I had to go to the iTunes Library Extras.itdb file and give myself permission to have full control.  THEN, I could go and estore a previos version.  Once I had done this, I got the same message for iTunes Library Genius.itdb . . . I did the same thing with it and Voila'!!
    Hope this helps...
    SVT

  • Get error message when syching iPod, iPod cannot be synced. You do not have enough access priveleges for this operation.  How to solve this?

    Get error message when syching iPod, iPod cannot be synced. You do not have enough access priveleges for this operation.  How to solve this?

    Hello FranBNYC
    It sounds like a permissions issue with your library, check out the article below to check and make sure that things are set correctly.
    Trouble adding music to iTunes library or importing audio CD
    http://support.apple.com/kb/ts1387
    Thanks for using Apple Support Communities.
    Regards,
    -Norm G.

  • I have downloaded the most recent itunes on my new computer with windows 8        but a message pops up saying "the itunes library.itl file is locked, on a locked disk or you do not have write permission for this file. How do I fix?

    I have downloaded the most recent itunes on my new computer with windows 8 but when I attempt to get in I get this message "The itunes library.itl file is locked, ona locked disk, or you do not have write permission for this file."  How do i fix this?

    Repair iTunes Security Permissions
    Right-click on your main iTunes folder and click Properties, then go to the Securitytab and click Advanced. Use the Change Permissions... button grant to your account (or the Users group) and SYSTEM full control of this folder, subfolders and files, then tick the option to Replace permissions entries... which will repair permissions throughout the library. When complete switch to the General tab, click in the Read-only check box to clear it, then click Apply.
    If you don't have the option to change the permissions then use the Owner tab and Edit... button to take ownership from an account with administrator privileges. Tick the option to Replace owner on subcontainers and objects.
    Repeat with the media folder if it isn't stored inside the main iTunes folder.
    If you've brought over the library from another computer you may also want to remove any "mystery" identities (S<string of dashes & digts>) that have come over from the old computer...
    The images above are from Windows 7. Hopefully the system isn't too different in Windows 8.
    tt2

  • I have a Windows 7 Professional, 64 bits on my computer and have recently installed iTunes 11.1.3.8. but i started having this msg :"The folder iTunes is on a locked disk or you do not have write permission for this folder" issues: how can i solve it?

    I have a Windows 7 Professional, 64 bits on my computer and have recently installed iTunes 11.1.3.8. but i started having this msg :"The folder iTunes is on a locked disk or you do not have write permission for this folder" issues: how can i solve it?

    Right-click on your main iTunes folder and click Properties, then go to the Security tab and click Advanced. If necessary grant your account and SYSTEM full control of this folder, subfolders and files, then tick the option to replace permissions on child objects which will repair permissions throughout the library. This is the XP dialog but Windows 7 shouldn't be too different.
    If it won't let you change the permissions use the Owner tab to take ownneship from an account with administror privileges.
    tt2

  • The following message appears "The itunes library file cannot be saved. You do not have enough access privileges for this operation." how can i resolve this?

    the following message appears "The itunes library file cannot be saved. You do not have enough access privileges for this operation." how can i resolve this?

    I am having the same issue and suggestions on other pages are not working ... why has this started all of a sudden?

  • Pro Tool Studio LE 7 upgrade... anyone knows where I can buy the upgrade version for this? and how much does it cost?

    I have a Mac Pro 2006 running on leopard and I need to upgrade my Pro Tool Studio LE 7 to 8 so it can work on Leopard.. anyone knows where I can buy the upgrade version for this? and how much does it cost?

    Upgrade to Pro Tools Studio LE 8: - http://shop.avid.com/store/product.do?product=288865113879120
    But it would be worth searching through the Updates to see if there is an update for Leopard, which it looks like there is: - http://avid.custkb.com/avid/app/selfservice/search.jsp?DocId=355241

  • Tool for creating sample data

    Greetings all,
    I have a application and I have some lookup tables used in the application for select lists etc... When I export the application I can get it to create the tables on installation but they are empty and I was wondering if there are instructions out there on how to have the data inserted into the table (Like the sample data is inserted in the OEHR Database). I know I can import the data from csv files after the application is installed, but wanted to have the lookup table populated when the application is deployed.
    I have been taking my application and installing it on other APEX instances, but then have to go in and import table data. I looked at the OEHR sample data build and I see that they do some insert into statements, but wanted to find out if there is an automated way to do this or some instructions out there to add this to the application sql file? There is much information in the OEHR sql file, and I don't know what is required or mandatory to make the insert into stuff work.
    Thanks in advance
    Wally
    Example table
    CategoryTable
    CategoryID (Number) PK
    CategoryName(VARCHAR2)(50)
    Data
    CategoryID CategoryName
    1 Cat1
    2 Cat2
    3 Cat3
    4 Cat4
    5 Cat5

    Thi sis what I do when I want to bundle supporting (lookup) table data.. I use SQL Developer to download a my table data as insert statements. I save those insert statements to a script and then add them to the application install file, via the supporting objects tab in APEX..
    See this site for more information: http://www.yocoya.com/downloads/apexsuppaper.pdf
    Thank you,
    Tony Miller
    Webster, TX
    Never argue with an idiot. They drag you down to their level, then beat you with experience.

  • Firefox crashed when I restarted it to install plugins and the crash reporter is unable to submit a report for this crash. How can I submit this report?

    # This file is in the UTF-8 encoding
    [Strings]
    # LOCALIZATION NOTE (isRTL):
    # Leave this entry empty unless your language requires right-to-left layout,
    # for example like Arabic, Hebrew, Persian. If your language needs RTL, please
    # use the untranslated English word "yes" as value
    isRTL=
    CrashReporterTitle=Crash Reporter
    # LOCALIZATION NOTE (CrashReporterVendorTitle): %s is replaced with the vendor name. (i.e. "Mozilla")
    CrashReporterVendorTitle=%s Crash Reporter
    # LOCALIZATION NOTE (CrashReporterErrorText): %s is replaced with another string containing detailed information.
    CrashReporterErrorText=The application had a problem and crashed.\n\nUnfortunately the crash reporter is unable to submit a report for this crash.\n\nDetails: %s
    # LOCALIZATION NOTE (CrashReporterProductErrorText2): The first %s is replaced with the product name (i.e. "Firefox"), the second is replaced with another string containing detailed information. These two substitutions can not be reordered!
    CrashReporterProductErrorText2=%s had a problem and crashed.\n\nUnfortunately the crash reporter is unable to submit a crash report.\n\nDetails: %s
    CrashReporterSorry=We're Sorry
    # LOCALIZATION NOTE (CrashReporterDescriptionText2): The %s is replaced with the product name.
    CrashReporterDescriptionText2=%s had a problem and crashed.\n\nTo help us diagnose and fix the problem, you can send us a crash report.
    CrashReporterDefault=This application is run after a crash to report the problem to the application vendor. It should not be run directly.
    Details=Details…
    ViewReportTitle=Report Contents
    CommentGrayText=Add a comment (comments are publicly visible)
    ExtraReportInfo=This report also contains technical information about the state of the application when it crashed.
    # LOCALIZATION NOTE (CheckSendReport): The %s is replaced with the vendor name.
    CheckSendReport=Tell %s about this crash so they can fix it
    CheckIncludeURL=Include the address of the page I was on
    CheckSendEmail=Email me when more information is available
    EmailGrayText=Enter your email address here
    ReportPreSubmit2=Your crash report will be submitted before you quit or restart.
    ReportDuringSubmit2=Submitting your report…
    ReportSubmitSuccess=Report submitted successfully!
    ReportSubmitFailed=There was a problem submitting your report.
    ReportResubmit=Resending reports that previously failed to send…
    # LOCALIZATION NOTE (Quit2): The %s is replaced with the product name.
    Quit2=Quit %s
    # LOCALIZATION NOTE (Restart): The %s is replaced with the product name.
    Restart=Restart %s
    Ok=OK
    Close=Close
    # LOCALIZATION NOTE (CrashID): The %s is replaced with the Crash ID from the server, which is a string like abc12345-6789-0abc-def1-23456abcdef1
    CrashID=Crash ID: %s
    # LOCALIZATION NOTE (CrashDetailsURL): The %s is replaced with a URL that the user can visit to view the crash details.
    CrashDetailsURL=You can view details of this crash at %s
    ErrorBadArguments=The application passed an invalid argument.
    ErrorExtraFileExists=The application didn't leave an application data file.
    ErrorExtraFileRead=Couldn't read the application data file.
    ErrorExtraFileMove=Couldn't move application data file.
    ErrorDumpFileExists=The application did not leave a crash dump file.
    ErrorDumpFileMove=Couldn't move crash dump.
    ErrorNoProductName=The application did not identify itself.
    ErrorNoServerURL=The application did not specify a crash reporting server.
    ErrorNoSettingsPath=Couldn't find the crash reporter's settings.
    ErrorCreateDumpDir=Couldn't create pending dump directory.
    # LOCALIZATION NOTE (ErrorEndOfLife): The %s is replaced with the product name.
    ErrorEndOfLife=The version of %s you are using is no longer supported. Crash reports are no longer being accepted for this version. Please consider upgrading to a supported version.

    I think you may have pasted the wrong thing into the Description.
    To try and resubmit a pending report (for example if you lost your internet connection):
    #Go to about:crashes in the location bar
    #Click the latest report link to resubmit it
    If there isn't a pending crash report listed, I'm afraid you may be out of luck for that crash report.

  • TS1717 unes, i have windows 8, i get the message, "the itunes Library .itl file is locked, on a locked disk, or you do not have write permission for this file.  how did this happen, how do i fix this?

    the message"The itun, library .itl file is locked, on a locked disk, or you do not have write permission for this file". i have windows 8. how why did this happen? how do i correct this and prevent another occurance?  I am able to access itunes on my i5, ipad, and my old i4 that i use solely as my ipod now. At the time  problem occurred, i was connected to ext hard drive that hold over 190GB music, to add to my library. I am now unable to add to my library using my laptop.  any advise/help is greatly appreciated!!

    I just had the same problem and was able to fix it after trying a couple of things I found after a search.
    The solution that worked for me:
    Find iTunes folder - it should be in C:\Program FIles (x86) or similar depending on your operating system
    Right click the entire folder (no need to open it) and click properties
    Click the security tab
    Click edit and highlight the user name under which you logged in.
    Click the box next to full in the allow column, which should check everything
    Click apply
    Open iTunes
    This worked for me.

  • Getting a message when trying to sync my iphone music to my imac "Attempting to copy to disk Macintosh HD failed. Don't have enough access privileges for this operation." How do I fix this?

    How do I fix the following problem when I try to sync my iPhone music to my iMac?  "Attempting to copy to disk Macintosh HD failed. You don't have enough access privleges for this operation."

    Hey veo1,
    I found the following information about that error message:
    These messages occur if permissions are incorrect on your designated music folder or on a folder inside your designated music folder. Permissions are settings that determine who can read, write to, or execute a file or folder on your computer. Every file and folder on your hard disk has an associated set of permissions.
    Look here for help in correcting the permissions on folders:
    OS X:
    Troubleshooting permissions issues in OS X
    http://support.apple.com/kb/HT2963
    Sincerely,
    Delgadoh

  • Inspite of having javascript enabled, I am getting a message"21966 javscript disabled for this browser". How do i get it done?

    I checked the tools options wherein the javascript was enabled. However, I still get the message :21966 Javascript disabled for this browser. Now I am not able to move forward unless this has been sorted. How do I solve this issue?

    Read the article you linked.
    If changing your password does not resolve, then contact itunes support

  • When I try to open Itunes it says Library.itl file is locked, on a locked disk, or you do not have permission for this file.  How do I open?  What did my Kid do?

    My daughter added more storage to her cloud while i was at work.  When I came home and tried to get onto Itunes I got the message,'library.itl file is locked, on a locked disk, or you do not have write permission for this file.  I tried uninstalling Itunes on my computer and reinstalled.  After I tried to get in and the same message came up.  I can get onto Itunes on different computers except one.  Any Ideas?

    Hello MF7642,
    Thank you for contacting Apple Support Communities.
    You can use this article to troubleshoot your issues with iTunes.
    iTunes: Missing folder or incorrect permissions may prevent authorization
    http://support.apple.com/kb/TS1277
    Regards,
    Jeff D.

  • I am using Gradens of time app on my ipad, it keeps crashing when I edit my garden, is there a reason for this? And how do I correct it?

    I am using the app for the aboved game but it keeps crashing when I am editing my garden and I have to restart the game, there a reason for this and what is the solution?

    As when there is a problem with a 3rd party app on your computer, contact the app developer and ask the developer why the app is crashing.

  • Acrobat Pro 9 (OS X) not offered for this download. How do I get it?

    I need to reinstall Acrobat Pro 9 (OS X) on my laptop. The adobe site does not offer this download. How do I get it?

    You can use the SearchReset extension to reset some preferences to the default values.
    *https://addons.mozilla.org/firefox/addon/searchreset/
    Note that the SearchReset extension only runs once and then uninstalls automatically, so it won't show on the "Firefox > Add-ons" page (about:addons).
    If you do not keep changes after a restart or otherwise have problems with preferences, see:
    *http://kb.mozillazine.org/Preferences_not_saved
    *http://deletemalware.blogspot.com/2013/07/remove-delta-homescom-removal.html
    *http://malwarefixes.com/remove-delta-search-virus/

Maybe you are looking for

  • Deletion of schedule line in PO using BAPI_PO_CHANGE

    Hi , Can anyone give me the code to delete a schedule line in a po using the bapi bapi_po_change. Useful answers will be rewarded. Regards, Sowmya.

  • Wireless to Macbook Pro to Ethernet to G5

    Hi, My G5 currently doesn't have a wireless card and I want to get internet to it, however my macbook pro does. Is it possible to run an ethernet cable from my macbook pro to my G5 and use my Macbook pro basically as a wireless card? thanks

  • Music issues

    Ever since I updated to IOS 8.0.2 on my 3rd gen Ipad my music is messed up. When I go to artist in music and I pick one and play a song every artist now I pick has the songs of the first artist I picked and no other songs form the artist I pick now.

  • Webcenter and standard LDAP connection

    I am trying to create a webcenter application that used LDAP authentication. I do not have much ADF experience so i really don't know were to start... i read some documentation but it is so overwhelming i don't know where to start.... THere is securi

  • Audit growth

    i am working in oracle 11.2 on HP-UX. My audit parameters are showing false... but there is an enormous grwoth of .aud files in the audit folder.... Audit parameter NAME VALUE audit_file_dest /oracle11g/app/oracle/product/11.2/rdbms/audit audit_syslo