For this SAMPLES how to complete my obligation?

For this SAMPLES how to complete my obligation?
with the temp as
(
Select "LUN" weekdays, 9-10' TIMING 'I' of the CLASS OF THE DOUBLE UNION
Select "LUN" weekdays, 9-10' TIMING, 'II' CLASS OF DOUBLE UNION
Select "LUN" weekdays, 9-10' TIMING, 'III' CLASS OF DOUBLE UNION
Select "LUN" in WEEK 10-11' SCHEDULE, 'I' of the CLASS of THE DOUBLE UNION
Select "LUN" day of the WEEK, CALENDAR 10-11', 'II' CLASS OF DOUBLE UNION
Select "Mar" day of the WEEK, 9-10' TIMING, 'I' of the CLASS of THE DOUBLE UNION
Select "Mar" in WEEK 9-10' TIMING, 'II' FROM DUAL CLASS
)
Select? (what will be the query?)

How can I get output in this way:
day of the WEEK CALENDAR CLASS
MON 9-10 I, II, III
MON 10-11 I, II
MAR 9-10 I, II

In the case of 11 g, 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,II

Other techniques for the different versions are also mentioned here:
http://www.Oracle-base.com/articles/Misc/StringAggregationTechniques.php#listagg

Tags: Database

Similar Questions

  • I bought one copy of Windows 7 Ultimate, 1 pc. Now, I need to get 6 several licenses for this copy, how can I do?

    I bought one copy of Windows 7 Ultimate, 1 pc.  Now, I need to get 6 several licenses for this copy, how can I do?

    You purchase 6 additional keys on the Microsoft Store, simply specify the quantity:

    http://www.Microsoft.com/Windows/buy/default.aspx

    http://Windows.Microsoft.com/en-us/Windows7/get-a-new-Windows-product-key

  • I have Adobe CS5.1 and must be able to open the Nikon NEF RAW files from my Nikon D4s... y at - there a downoad Adober website for this or how can I get the update to do?

    I have Adobe CS5.1 and must be able to open the Nikon NEF RAW files from my Nikon D4s... y at - there a downoad on the Adobe site for it or how can I get the update to do?

    Hi XDCAMAN,

    Photoshop requires at least version 8.4 of camera raw to be able to directly open these Nikon NEF D4S files which is available in Photoshop CS6 and above versions (not in CS5)

    Reference article: supported by Adobe Camera Raw devices

    You can upgrade to a higher version of Photoshop or download Adobe DNG converter to convert raw files to DNG and access these DNG files in Photoshop CS5.

    Kind regards

    Claes

  • Form of presentation of course for OCP 9i: how to complete it when you are free?

    Hello

    I went on my first exam (exam 1Z0-007 - INTRODUCTION to ORACLE9I: SQL) for OCP 9i on July 2002.
    And last week, I completed to pass all the exams for OCP 9i fields.

    Now, I need to present the «course submission form» However I do not know how to fill.
    I have logged into the site of the view and entered on the option of hands on the course.
    But now I have a question about 'Training class Format', how should I complete?
    I ask this because I did no formal training Oracle. But based on the site, because I started
    my exams before September 2002, I would be able to apply for a waiver.

    Thank you
    Denis

    Hi Denis,.
    When you fill out the form for the submission of course in your situation, on the page where you choose a course, please enter Oracle9i Exemption of courses in the field 'other '.

    Kind regards
    Brandye Barrington
    Certification Forum Moderator
    Manager certification program

  • I was able to change the colors of fonts in an email, but now I can't. What is the reason for this and how can I solve the problem, please?

    I've updated for Mozilla Thunderbird v 24.4.0 and now the colors of fonts do not work.

    This bug was supposed to be fixed at 24.4, I why I am telling you your test so.
    See https://support.mozilla.org/en-US/questions/992366?

    could you please check again that you use 24.4.

    Also restart form Thunderbird Help menu (Alt + H) with Add-ons disabled, just to make sure that he is not an unhappy interaction with Add-ons or themes.

  • HP Laserjet P1102W: I chose the eco mode (less ink) for a print job. Now, default printer for this. How to cancel?

    I chose the eco mode (less ink) for a print job.  Since then that a default printer and some programs (for example, picasa) allow me to choose normal print mode I often forget to choose normal.  How can I definitively cancel eco or printer back to the original setting?  Printer works wirelessly.  Thank you.

    In Windows 7, click Start, devices and printers, right click on the Laserjet P1102w, select Printing Preferences.  Select the desired default values, apply, OK.

  • Photoshop Elements 8 - licensing for this product has been completed

    When I'm trying too change a picture, I get an error. Its telling me that licicing that this produkct is complete. Can you help me? I fight it 29.12.09

    Svein Jarle lilledahl

    Title of the message was edited by: Brett N

    See ths Adobe document:

    http://www.Adobe.com/support/contact/licensing.html

    Ken

  • Dvd - cd rom on my laptop (Acer Aspire 5515) stop working, I get a code 19 saying that windows cannot access the drivers for this device., how can I solve this problem?

    I had used the Device Manager, try to reinstall the drivers fix for windows etc nothing works

    Hello

    ·         Did you make any changes before the show?

    I suggest that you run the fixit provided in the link below and check if it helps:

    http://support.Microsoft.com/mats/cd_dvd_drive_problems/en-us

  • When I select a tab, the history displayed automatically for this tab, how to disable?

    I don't want to have the little show of white history box every time I move a tab or click on one. It make me DESACT somewhere, I find it very unproductive.

    Hello brcimo, it appears that if you have the extension named 'menu tab historical' installed, which offers the feature you described. If you don't like it uninstall from firefox > addons > extensions.

  • "Impossible recovery disk for this computer. Confirm the type of model.

    Dear everybody

    I have a prolem on my computer, and my computer is a Sony Vaio VGN-CS230J. My computer operating system is Windows Vista Home Premium 64-bit. Now I use Windows 7 and I want to back to the original operating system recovery, but it does not work. When I want to recover, it displays a message 'can't the recovery for this computer disk. Confirm the type of model. I wish that everyone could help me.

    To return to Vista, you must do a clean install, which probably a format the hard disk during the process (at least I'd do a format just to be sure to do it again and not accidentally install two OS on the same system that would create a more serious problem).  Make sure that you backup that data that the process will erase your drive first clean everything.  If you use a recovery disk or a recovery partition provided by the manufacturer, you must contact the manufacturer for advice on how to complete the process, because the recovery process is their to and not Microsoft.  This is the computer we're talking about:http://esupport.sony.com/US/perl/model-home.pl?mdl=VGN-CS230J®ion_id=1?  We can not help you with the process of recovery beyond what I've included below (which is basicially links to the Sony site and ways to contact them or obtain additional information).

    If you use the recovery Partition and it does not work, then you might need instead of disk recovery (that you can get from the manufacturer, for a small fee or maybe even do partition recovery - well than if the partition does not work I would ask on the disks, it - see the following) (: http://www.kb.sony.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=C427414&sliceId=1&docTypeID=DT_KNOWLEDGEARTICLES_1_1&dialogID=143790279&stateId=0).  Here are the steps to perform the recovery discs recovery according to Sony: http://www.kb.sony.com/selfservice/microsites/search.do?cmd=displayKC&docType=kc&externalId=C1003796&sliceId=1&docTypeID=DT_KNOWLEDGEARTICLES_1_1&dialogID=143790279&stateId=0 , but even once, we cannot help you with this.  The error you get suggests the recovery information does not match the model of the computer - which may mean there was an error during production (with the computer or with the recovery software) - but I don't know who to hit and you really do need to talk to Sony about this.  http://esupport.sony.com/US/perl/support-contacts.pl?mdltype_id=24.  If we consider the costs if this system is no longer under warranty, I think I'll try the chat option - although not as effective or as fast as the phone, he can usually answer most questions and help with most of the problems (and tell you how to do the things you need to do and how to get the things you need to get - if anything).  You know the problem and you know the situation and you know what you need to understand, therefore, to ask the right questions and get the answers you need.  If the chat also costs, you could try e-mail even if it will take more time and you'll have to write one that asks everything you want to know the first time or you will go back for days.

    I hope this helps.

    Good luck!

    Lorien - MCSA/MCSE/network + / has + - if this post solves your problem, please click the 'Mark as answer' or 'Useful' button at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to complete the data or details of the only this year and the previous year for the given RATNG?

    Hi all

    I created a form with 5 blocks (namely ENQACMHDR, ENQACMDTL, ENQACEHDR, ENQACEDTL, ENQACSPEC), where I have 8 push buttons (namely ENTER_QUERY, EXEC_QUERY, CLEAR, FIRST, NEXT, PREVIOUS, LAST, and EXIT).

    This form is created just for display purposes only. So after that I ran, all blocks have been blocked against insert and update.

    I have question on 2 fields 'ENQNO' and "RATNG" (both belong to the ENQACMDTL block).

    When I click on "EXEC_QUERY" directly, all data for all years fills.

    But the user wanted the data to be populated only this year and the previous year.

    Yes, on ' Clause WHERE' of the property_palette of the 'ENQACMDTL' block , I put in the following condition:

    SUBSTR (ENQACMDTL. ENQNO, 1, 4) = TO_CHAR (ADD_MONTHS (SYSDATE,-12), 'YYYY') OR SUBSTR (ENQACMDTL. ENQNO, 1, 4) = TO_CHAR (SYSDATE, 'YYYY')

    PROPERTY PALETTE (ENQACMDTL block)
    WHERE ClauseSUBSTR (ENQACMDTL. ENQNO, 1, 4) = TO_CHAR (ADD_MONTHS (SYSDATE,-12), 'YYYY') OR SUBSTR (ENQACMDTL. ENQNO, 1, 4) = TO_CHAR (SYSDATE, 'YYYY')


    Data only this year and the year before are now filled. Its ok with the field of "ENQNO".

    The problem is when I have queries on the field "RATNG. 'RATNG' is a Text_item with number of displayed items = 5. (5 lines)


    Here are the 2 columns in a Table (name = ENQACMDTL) in the database.


    ENQNO RATNG
    2013900054500KC2
    2013900047800KC4
    2013520018750KC6
    ...............
    20129000371000KC2
    2012520109500KC2
    2012140019750KC6
    ..................
    2011540036500KC2
    20111000301000KC2
    ..................
    .................
    200610000790KD8
    2006750014750KC6
    2006900072500KC2

    The first 4 issues of "ENQNO" represents the year. There is more than a lakhs of records.

    So, when I have queries on the field "RATNG."

    Example: for RATNG = 500KC2;

    I click on ENTER_QUERY, the field of "RATNG", I put in the 500KC2 of the value and click on EXEC_QUERY; Details regarding the 500KC2 is displayed as well as all the other junk RATNG as 750KC6, 1000KC2 (which belongs to the ENQNO of the current year and previous year) also gets displayed.

    I want details of only RATNG (500KC2) to display, but only for the current year and the previous year, it is 2013900054, 2012520109 (ENQNO).

    Other than 500KC2 RATNG, no other RATNG must be displayed.

    500KC2 = RATNG is also present for ENQNO = 2011540036, 2006900072. But I don't want them to view.

    I want only the data or details of the current year and the previous year to be filled or displayed for the given RATNG.

    Can you help me or tell me what I do for this?

    Hope I'm clear with my question!

    If my question is not clear, let me know please.

    Thank you.

    Oracle9i Enterprise Edition Release 9.2.0.1.0 - Production

    Oracle forms 6i.

    1. check null values in the enqacmdtl.enqno, if so treat them properly.

    2. check the result of select to_char (add_months (sysdate,-12), 'YYYY') prev_year curr_year of double to_char(sysdate,'YYYY')

    3. change the place where clause "year" in the value of numAriques.

    where to_number (substr (enqacmdtl.enqno, 1, 4)) > = to_number (to_char (add_months (sysdate,-12), 'YYYY'))

    Then let me know the result.

  • Thanks for the update of Firefox 4. Here is my concern - previously, the option "Search for updates" is located under the Help menu. In Firefox 4, I can't find this option; How will we be able to check if there are updates available?

    Previously, the "Find updates" option is located under the Help menu. In Firefox 4, I can't find this option; How will we be able to check if there are updates available?

    Can this new version to update automatically? How to set this option?

    Click the Firefox button, click Help, click on Firefox, there is a control for the button updates on this screen.

    Other issues that need your attention

    The information provided with your question indicates you have outdated plugins with known security and stability issues that need to be updated. To see the plugins submitted with your question, click on "+ system details...". "to the right of your original message of the question. You can also see your plugins in the Firefox menu Tools > Modules > Plugins.

    • Adobe Shockwave for Director Netscape plug-in, version 11.5

      • Several security updates behind
    • Adobe PDF plugin for Firefox and Netscape
      • Seems to be an older version
    • Shockwave Flash 10.2 r152
      • 10.2 r153 recently released security update
    • Next-generation Java plug-in for the Mozilla browsers 1.6.0_15
      • 9 updates behind
    1. Check your plugin versions on one of the following links:

    2. Update to Shockwave for Director
      • NOTE: this is not the same thing as Shockwave Flash; This installs the Shockwave Player.
      • Use Firefox to download and SAVE the installer to your hard drive from the link in the article below (Desktop is a good place, so you can find it).
      • When the download is complete, exit Firefox (file > exit)
      • Locate and double-click it in the installer that you just downloaded, let the complete installation.
      • Restart Firefox, and look at your plugins.
      • Download link and more information: http://support.mozilla.com/en-US/kb/Using+the+Shockwave+plugin+with+Firefox
    3. Update of Adobe Reader (PDF plugin):
      • Within your existing Adobe (If you have already installed) drive:

    • Open the Adobe Reader program in your list of programs
    • Click Help > check for updates
    • Follow the instructions to update
    • If this method works for you, go to the section "download full installer ' below and go to"after the installation"below
  • Download the full installer (If you have NOT installed Adobe Reader):
    • "Use the links below in order to avoid the painful' getplus" Adobe Download Manager and other 'extras' you do not want
    • Use Firefox to download and SAVE the installer to your hard drive for the appropriate link below
    • Click "save to file"; Save to your desktop (so you can find it)
    • Once the download is complete, close Firefox
    • Click on the installation program, you just downloaded and allow installation to continue
      • Note: Vista and Win7 users need to right click on the installer and choose "Run as Administrator"
    • Download link: ftp://ftp.adobe.com/pub/adobe/reader/
      • Choose your operating system
      • Choose the latest version of # .x (example 9.x for version 9)
      • Choose the version the most recent number
        • NOTE: 10.x is the new Adobe Reader X (Windows and Mac only from this announcement)
      • Choose your language
      • Download the file, save it to your hard drive, when finished, close Firefox, click on the installation program you just downloaded and let it install.
      • Windows: click on the .exe file. Mac: click on the .dmg file
  • Using one of the links below will force you to install the "getPlus" Adobe Download Manager
  • . Also don't forget to uncheck the McAfee scanner if you do not want the link force installed on your desktop computer
  • After installation, launch Firefox and recheck your version.
  • Update the Flash plugin to the latest version.
    • Download and SAVE to your desktop, so you can find the Setup program later
    • If you do not have the current version, click on the "Player Download Center" link on the 'download and information' or 'Download manual installers' below
    • Once the download is complete, exit Firefox
    • Click on the installer, you just download and install
      • Windows 7 and Vista: will need to right click on the installer and choose 'run as administrator '.
    • Launch Firefox and recheck your version or up to the download link below to test the installation
    • Download and information: http://www.adobe.com/software/flash/about/
      • Use Firefox to go to the site above to update the Firefox plugin (will also install the plugin for most other browsers, except IE)
      • Use IE to go to the site above to update the ActiveX to IE
    • Download manual installers.
  • Update the Java plugin to the latest version.

  • See also "Manual Update" in this article for update from the Java Control Panel in Control Panel: http://support.mozilla.com/en-US/kb/Using+the+Java+plugin+with+Firefox#Updates
  • Removal of older versions (if required): http://www.java.com/en/download/faq/remove_olderversions.xml
  • Remove several extensions of Console Java (if necessary): _ http://kb.mozillazine.org/Firefox: _FAQs_:_Install_Java #Multiple_Java_Console_extensions
  • Java test: http://www.java.com/en/download/help/testvm.xml
  • When installing iTunes I get a message error "there is a problem with this Windows Installer package. A program required for this install to complete could not run. »

    Windows Installer package error

    When installing iTunes I get a message error "there is a problem with this Windows Installer package. A program required for this install to complete could not run. "I downloaded Windows Installer 4.5, rebooted and tried again with the same results.  How can I fix?

    Hello

    Important The Windows Installer Cleanup (MSICUU2.exe) utility that was previously referred to as in this article has been abandoned. Although the Windows Installer Cleanup utility solved a few problems installing, it sometimes damaged other components that have been installed on the computer. For this reason, the tool has been removed from the Microsoft Download Center. program install and uninstall problem solving

    (http://support.microsoft.com/mats/Program_Install_and_Uninstall)

    is a replacement for this utility.

    "The problems with programs that cannot be installed or uninstalled.

    http://support.Microsoft.com/mats/Program_Install_and_Uninstall

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    And see if this information helps you install iTunes:

    "Not to install iTunes or QuickTime for Windows"

    http://support.Apple.com/kb/HT1926

    «Remove and reinstall iTunes, QuickTime, and other software components for Windows Vista or Windows 7»

    http://support.Apple.com/kb/HT1923

    If the advice already given does not, please contact Apple for assistance.

    "iTunes support-how to use iTunes.

    http://www.Apple.com/support/iTunes/

    "Contact iTunes Support.

    http://www.Apple.com/support/iTunes/contact/

    Or ask in the community Apple iTunes:

    https://discussions.Apple.com/community/iTunes

    See you soon.

  • SE error message: "there is a problem with this windows package install." A program required for this install to complete could not be run. Contact your provider staff or the support package 'after updating to iTunes

    Original title: after recent update, the installation software WONT work properly! Help!

    • I am in desperate need of aid. I didn't something again on my computer, but these recent software updates. I've recently updated my my itunes and from itunes then will opens not or install it. It was working fine before that was last updated, but now used. I tried to uninstall several times, in a variety of versions. Still nothing. Is not specific to the user and system wide as well.

      I get a message saying "there is a problem with this windows package install." A program required for this install to complete could not be run. Contact your supplier of staff or the package of support ".

      Anyone know what I need to do? Or how to fix it?

    Hi MxGurl,

    If this occurs after the installation of update Itunes, then go to the following link and check if it helps.

    iTunes for Windows Vista or Windows 7: Troubleshooting unexpected quits unexpectedly, freezes, or launch issues

    http://support.Apple.com/kb/TS1717

    If this does not help, you should contact Apple support or post in the Apple discussion forums.

    http://discussions.Apple.com/category.jspa?categoryID=149

    You can also check out the following link and try the steps by Suresh I Support Microsoft, moderator and Andre.Ziegler and check if this may help

    http://social.answers.Microsoft.com/forums/en-us/vistaprograms/thread/11f4e2c0-0595-4c7f-8579-e52d2c4bf36c

    Hope this information is useful.

    Jeremy K
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • Pop up scanner "no application is registered for this event." How can I register a claim?

    When I press scanning or copying or the E-Mail button on the Scanner, I get a message that says "there is no application registered for this event." How can I register a claim? The Scanner is Canon CanoScan3000ex.  Test Scanner or camera photo-bouton I get - your imaging device successfully completed the diagnostic test.  Device properties general tab: I receive - this device does not work correctly.  The Scanner appears in the control panel being installed.  When I open the properties of the Scanner, the applicatons box is empty and I can't access it.  How can I get the computer to chat with the scanner?

    Hello

    all that I can say that you do not give a brand name is to uninstall and reinstall the scanner using the latest drivers from vista on the site of scanner manufacturers

    If this does not work, contact the manufacturer of scan to support

Maybe you are looking for