double post deleted

I have a table test1

I want to group by orderno and concatenated with date and code

Here is the table data and test test:

CREATE TABLE test1
(
OrderNo NUMBER,
code VARCHAR2 (35),
DateField VARCHAR2 (35)
);

INSERT into test1 ((id,
OrderNo,
code,
DateField)
values
(1, c1, "23/08/2011 '");

Insert into test1 ((id,
OrderNo,
code,
DateField)
values
(1, c2, "13/08/2011 '");


Insert into test1 ((id,
OrderNo,
code,
DateField)
values
(1, c3, "31/08/2011 '");


Insert into test1 ((id,
OrderNo,
code,
DateField)
values
(2, c4, "01/08/2011 '");

my output should be:

1 c1 (23/08/2011); C2 (13/08/2011); C3 (31/08/2011);

2 c4(8/01/2011);

Thanks in advance
SQL> select * from
  2  (select 1 orderno, 'c1' code, to_date('08/23/2011','mm/dd/yyyy') datefield from dual union all
  3   select 1 orderno, 'c2' code, to_date('08/13/2011','mm/dd/yyyy') datefield from dual union all
  4   select 1 orderno, 'c3' code, to_date('08/31/2011','mm/dd/yyyy') datefield from dual union all
  5   select 2 orderno, 'c4' code, to_date('08/01/2011','mm/dd/yyyy') datefield from dual) vt1;

   ORDERNO CODE DATEFIELD
---------- ---- -----------
         1 c1   23-Aug-11
         1 c2   13-Aug-11
         1 c3   31-Aug-11
         2 c4   01-Aug-11

SQL>
SQL> select orderno, wm_concat(code||' '||datefield) datefield
  2    from
  3  (select 1 orderno, 'c1' code, to_date('08/23/2011','mm/dd/yyyy') datefield from dual union all
  4   select 1 orderno, 'c2' code, to_date('08/13/2011','mm/dd/yyyy') datefield from dual union all
  5   select 1 orderno, 'c3' code, to_date('08/31/2011','mm/dd/yyyy') datefield from dual union all
  6   select 2 orderno, 'c4' code, to_date('08/01/2011','mm/dd/yyyy') datefield from dual) vt1
  7  group by orderno;

   ORDERNO DATEFIELD
---------- --------------------------------------------------------------------------------
         1 c1 23-AUG-11,c2 13-AUG-11,c3 31-AUG-11
         2 c4 01-AUG-11

SQL> 

Tags: Database

Similar Questions

  • Adobe Creative Cloud [double post]

    Hello

    So far, no one could help me.

    So I'll try to explain what is exactly the problem.

    I have a license for Adobe PS and LR for a year (12.09) until October 3.

    I tried to stop and by mistake I deleted CC Adobe Photoshop of my

    computer because I've always had an older version (CS6).

    Now my CS6 (pay pal PS-version) does'nt work more. I tried to

    recover Photoshop CC2015.

    I still can't use Lightroom and Bridgefrom CC2015, but I can not download PS CC

    Once again, but I am still a member paying until October 3.

    I tried to buy CC PS once again, but when I want to start and buy again I

    the message "you already have PS CC".

    It's true, but does not.

    I have to wait until October when he stopped my license? This means that

    in a meantime I can't use my Photoshop CC.

    I think Adobe can bring me a download to fix this problem?

    Thanks for trying to help me,

    Greetje van Dam

    [Moved from the endorsement, general, all Adobe forums Lounge for a specific support by product - moderator forum]

    Double post

    My license stops on 3 oct. I didn't want another year and remove Photoshop CC. stupid I know, but now I want to start in October, but I don't know how Adobe to know I want to pick up Adobe Creative cloud approx. PS and LR 12.09 each month

  • Cifiguration error 1 [locked double post]

    When I try to open any program in my cs6 iI get a configuration error 1 error message. He told me to uninstall and reinstall the product. Only problem is, my cs5 was an upgrade to cs3, and since then, I got a cs6 upgrade. All I have is my cs5 disk. It won't let me reinstall it not because when I got the upgrade for cs6 it uninstalled cs5. And now it says I need to have a previous version on my Mac to use the drive. AAAAACCCCCKKKKKK!

    This is a double post. See this thread:

    CS6 1 configuration error

  • double posting?

    Hi does anyone know how to get rid of double signs thanks I don't know how it happened.

    Hello

    If you click the report down left inappropriate content link, you can then send a message to a moderator asking the post to delete.

    Kind regards

    DP - K

  • Why is my post DELETED? !!

    I was Creat one post here in this forum and it is deleted why?

    Yes, you asked about the software and firmware with Google services in two positions, so the post moved.

    Your messages are both on the same issues.

    Dave

  • When I click on an e-mail recipient address, I get a double post screen

    As well as the double screen, when I move the cursor to the top left of the message box, a window pops up that says "Publisher of advanced properties" and inside the window, text #000000 and bgcolor #FFFFFF she says. Any help would be appreciated. Thank you.

    Looks like you have a mouse that's wrong and deliver a double click when clicked. Your questions would be caused by a double click. You have another mouse that you can try?

  • I get double messages on my laptop but not on my pc and I have the same email address for both. How can I get rid of the double posts?

    I went to Verizon a few days ago and had many problems with my new e-mail account. They seemed to have been resolved except for every email that I receive on my double laptopis.  I want to continue to use Windows mail.

    First thing to check would be...
    Make sure that you do not set up the e-mail account of Verizon twice on your laptop.

    Open Windows Mail > tools > accounts > see you account to Verizon 1 or 2?

  • Does not double post. Locked]

    My cloud of Adobe does not open when I double click on it.

    When you ask a question you will need to provide some basic information

    -Forum quick start https://forums.adobe.com/docs/DOC-5601

    Mac or Windows and EXACTLY what version of the operating system?

    Recent Mac AND Windows operating systems have been known to cause problems "weird."

    Using a full account of computer administrator with read/write permission?

  • Double post of form data in Eloqua and SFDC

    Our SFDC admin wants to move to display all form both Eloqua and SFDC data, and to make the list of all imports in SFDC. His team has already found the 3rd party systems to counter problems of duplication in SFDC de-duplication. As Eloqua user, I find the process of taking a step backwards in our marketing automation process. Any of you have experience with dual signage? Reasons for or against it?

    Although it is possible with a re-post form I would advise against. I had similar discussions where people are not familiar with the benefits of an integrated between Eloqua and SFDC flow.

    The biggest limitation for me is that Web-to-lead in SFDC cannot accept as 500 prospects in a 24 hour period (out of the box he used to 500 per day, you can increase but at a cost)

    I would try to understand the concerns importance than what does Eloqua is just a call API with SFDC (pretty standard stuff and more robust than the Web-to-lead). Looks like they care about duplicates. Watching the process today - are you creating a new every delay of performance, or you are only creating a lead when a contact does not exist (this will reduce dupes, but can give you others challenges in terms of visibility of these contacts - depends on the appearance of your sales team in call lists.) If they use only lead views, could be a problem).

    List of imports - this should be good. Many SFDC admins using tools such as PeopleImport to handle the loads list and can manage settings to avoid duplication, do not create a lead when a contact already exists, etc.

  • double post [ignores]

    Oops... He posted twice. Ignore this message. Moderator, please remove results...

    You would be better served by using the flash9_actionscript3_preview forum for
    These questions. Here is an answer from a thread in this forum:

    -----------------------------------------------------------------
    Hello

    Currently, those are the only solutions to this problem:
    -Declare the dynamic document class
    -Add declarations of public variables for instances of the scene

    If you want to maintain encapsulation and the plan of using the document class
    with multiple FLA files, you could do a base class with the kernel
    feature, then the subclass that class for classes of basic document. In
    These subclasses, you can add declarations of variables for instances of the scene
    specific to each FLA file.

    We are aware that this can be tedious. We are counting on adding an option for
    automatically declare stage instances in Flash 9 calendar.

    -Amel
    -----------------------------------------------------------------

  • Double post

    Cannot figure out how to remove this element.  I'm the worst.

    Too bad...

    GB

  • No playback (Apple-bound double posting)

    Sometimes when I open the first reading external monitor does not connect. I use a display port dual link apple. When I switch to the display of the effects after reconnect. I checked my prefs reading first and everything seems ok. I rebooted the machine.

    Make sure your project windows are overlapping not on your display screen. This should solve the problem.

  • Ignore double post

    Error

    Error

  • News Time Capsule, who am I clicking / moving from the old to the new

    I am installing a new time machine.  I can't find anything that clearly explain what exactly I'm clicking and dragging from the old to the new.  It States in the article apple in the Finder to drag the time capsule backup disk image to the new original airport.  I do not see that whatever this is called image backup drive when I'm in the Finder.  I have the following:

    OS X El Capitan, version 10.11.5

    MacBook, late 2009

    Airport Time Capsule, 1 TB, think its 3rd generation

    Here is the link to the apple site I use for instructions.

    https://support.Apple.com/en-us/ht204078

    When I click on the time capsule (when connected via Ethernet), I see a yellow folder called data. Data are referred to as a sharepoint under type.

    When I double click on data, Finder displays the content on my time machine which are as follows:
    -' of a lizardson MacBook"it's a sparsebundle
    -' of a lizardson MacBook 1"is a sparsebundle

    -3 or 4 files that I created to copy things from my computer not apple at the time machine and back to my mac

    I also noticed that after I double-clicked on data I see an icon on the desktop, title given (with the icon that represents the data on a time capsule).

    In Time Machine preferences, when I click Select backup disk, call it data (and has the same icon as the one on the desktop).

    The State of instructions to click and drag in the finder... but think (which is probably not correctly) I'm docking time at my office - and just above machines drag this folder 'Data' on a new via the Office of the former?

    < double post deleted by Tesserax >

  • Tecra A10 - refurbished - cannot get it connected to my home network

    I just got this Tecra A10-104 refurbished Laptop... before I take this back I ask here in case where theres something I missed as I am unable to get it connected to my home network.

    I use a Belkin wireless router that has 2 main (LAN) directly connected PC and another PC connected wireless.
    It's my router: http://www.belkin.com/uk/support/article/?lid=enu&pid=F5D8233uk4&aid=9238&scid=0

    All PC connected and fine work.
    Now I'm setting up this laptop to connect.

    I uninstalled the Vista Business and ussed the product recovery disc that came with the Tecra XP Pro.

    Is my wireless card: Intel (r) Wireless WiFi Link 5100 (pilot Date: 27/04/2008 - the driver Version: 12.0.0.73)

    He sees the network, but no matter what I try just does not connect.

    What I've done so far (read before suggesting things I've already tried):

    Reconfigured routers WPS to the shared key system.

    Ensured that the wireless adapter's parameters defined at 20 / 40 Hz (automatic)

    Restarted the router, cable modem & laptop several times

    Laptop wireless button is turned on.

    FN + F8 to activate BLUETOOTH WIFI (ON) (OFF)

    Wireless network added to settings Auto Connect with the end SSID and password encryption method.

    Click on connect when network appear in the revamped network and Password Viewer dialog.

    Does not.

    I would add that the laptop has no problem connecting via its Gigabit LAN port.

    Something else I'm missing?

    Thanks in advance.

    EDIT: Double post deleted.

    UPDATE:

    The next thing I tried was to reinstall Vista Professional recovery disk to see if it has suffered from the same problem.

    Wireless has worked under Vista, and despite the updates I was offered, worked without having to update all the drivers.

    This got me thinking... so the question is probably DRIVER XP related.
    What I've done now is to back up all the updates driver told me to download TEMPRO (BIOS & Manager wireless updates included).

    I think part of the problem is that only TEMPRO works under Vista (not XP) so you are not informed of any updates may be required if you upgrade to XP directly after the purchase (which is what I did).

Maybe you are looking for

  • Asian fonts displayed when you go to Google and other web sites

    Firefox displays an Asian font when you access Google and a few other websites. Others are not performed.

  • OfficeJet 6500 a +: [El Capitan] duplex resets and unusable scan to PC option

    Hi all I encounter a bug very annoying with the latest driver for my Officejet 6500 a + (E710n) on MacOS El Capitan. I equipped module two-sided to two-sided printing from the printer and enabled this option in the printer to use. Hoever, every time

  • lost scanner icon

    When I open my desktop shortcut for the printer, it is no longer and the scanner icon - it has disappeared. How can I get that back? I uninstalled the printer and re-installed and no change. This happened about 3 weeks after that window had made abou

  • This motherboard is compatible with my HPE - 380 t case?

    I plan to replace my current motherboard that came with the Tower (because it uses PCI-Express 2.0) with the ASRock Z77 Extreme4, but I don't know if it will be insert in the tower. Motherboard ASRock website:http://www.newegg.com/Product/Product.asp

  • My drive is dead?

    I know its sounds like dead drive but want to make sure. MY pc has started to give messages on a problem, I did nothing (straight!), and then it happened, when I started PC, a message: AHCI Port0 device error. Press f2 to resume. who then took me toC