Duplicate post removed

i have a table test1
I want to group by orderno and concatenate with date and code
below is the test table and test data:
CREATE TABLE test1
orderno NUMBER,
code VARCHAR2 (35),
datefield VARCHAR2 (35)
INSERT into test1 ((id ,
orderno ,
code ,
datefield )
values
(1,c1,'8/23/2011');
insert into test1 ((id ,
orderno ,
code ,
datefield )
values
(1,c2,'8/13/2011');
insert into test1 ((id ,
orderno ,
code ,
datefield )
values
(1,c3,'8/31/2011');
insert into test1 ((id ,
orderno ,
code ,
datefield )
values
(2,c4,'8/01/2011');
my result should be:
1 c1 (8/23/2011); c2 (8/13/2011); c3 (8/31/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>

Similar Messages

  • Duplicate Post in Error... Apologies

    Duplicate Post. Please ignore.
    If you know how to remove it please let me know though
    Edited by ejb3workshop at 12/05/2007 4:47 AM
    Edited by ejb3workshop at 12/05/2007 4:50 AM

    Duplicate Post. Please ignore.
    If you know how to remove it please let me know though
    Edited by ejb3workshop at 12/05/2007 4:47 AM
    Edited by ejb3workshop at 12/05/2007 4:50 AM

  • IGNORE - duplicate post

    I spent a lot of time chasing this down so thought I'd post something since I didn't immediately find the Metalink note mentioned below.
    I migrated a 6i form to 11g then tried to compile the module in Forms builder. It closed on me with no error. I couldn't find any log or error file. Compiling the form with frmcmp gave me an error file but it seemed to randomly stop at different points no matter how many triggers I eliminated. In addition to that, compilation of the PL/SQL didn't cause a crash.
    I finally stumbled upon a Metalink note that provided the answer: "An Item's Column Name Property Containing a Long DECODE Function Causes the Forms Compiler to Crash [ID 465970.1]." Sure enough, I had a column name with a decode in it. After I removed that, the compilation succeeded. The solution in the note says to reduce the length to less than 140 - that didn't work for me. I had to remove the decode altogether.
    Edited by: Tammy Osborn on Oct 19, 2010 1:13 PM

    transact wrote:
    The administrator, can he delete this post? Because it's here 3 per.
    Thanks.
    TransactNo, but you can hit the "edit" button on the first message in the thread and change the subject to something like "Duplicate post, please igonre". These double and triple posts are not that uncommon around here and most people understand (and have done it themselves). It seems to be due to slow response from the server and people hitting "post" button again and again, thinking it didn't "take" the first time.

  • Mods, could you delete duplicate posts?

    Hello Mods,
    Could you please remove duplicate posts here:
    http://discussions.apple.com/thread.jspa?threadID=974752&tstart=0
    There must have been some sort of error with the software and my post was repeated three times.
    thank-you,
    littleshoulders [:-)

    I just encountered the same. First my reply said it had timed out. Next a message that I could not reply more than once in 30 seconds, then posted another reply. Still nothing in this thread but probably will be duplicated.
    http://discussions.apple.com/thread.jspa?messageID=4625467
    EDIT: Then, "First my reply said it had timed out. Next a message that I could not reply more than once in 30 seconds, then posted another reply. Still nothing in this thread but probably will be duplicated.
    http://discussions.apple.com/thread.jspa?messageID=4625467
    Now, "An error has occurred. We apologize for the inconvenience."
    -mj
    [email protected]

  • How to avoid duplicate posting of noted items for advance payment requests?

    How to avoid duplicate posting of noted items for advace payments request?

    Puttasiddappa,
    In the PS module, we allow the deletion of a component pruchase requisition allthough a purchase order exists. The system will send message CN707 "<i>A purchase order already exists for purchase requisition &</i>" as an Iinformation message by design to allow flexible project management.
    If you, however, desire the message CN707 to be of type E you have to
    modify the standard coding. Doing so, using SE91, you can invoke the
    where-used-list of message 707 in message class CN, and to change the
      i707(cn)
    to
      e707(cn)
    where desired.
    Also, user exit CNEX0039 provides the possibility to reject the
    deletion of a component according to customers needs e. g. you may
    check here whether a purchase order exists and reject the deletion.
    Hope this helps!
    Best regards
    Martina Modolell

  • Duplicate posting of Payment Draft

    Hi
    We are surprised Outgoing Payment Draft is not refreshed automatically or become Closed until we manually tick or untick Open to refresh. There is high risk of mistaking it as open and post again
    yet the system does not prohibit posting of this Draft that is supposed to be closed already.
    We also shocked to know that even Payment Draft of Closed status can be added and posted as new Payment.
    This is too risky of duplicate posting when there are several drafts saved for later posting but each one is not to be repeated in posting. 
    Can we request for this system bug or limitation to be fixed. Is this likely for this problem to be fixed in version 2007B with new patch?
    Kedalene Chong

    Hi Sridhar.
    You need only reverse the duplicate post. Using some this T-codes: MR08, FB08, AB08, FBRA etc.
    Regrads.
    Jandoval Nascimento.

  • My 'songs' list in my library has all songs listed twice.  How do I remove all duplicates without removing the same songs in my albums and playlists?

    My 'songs' list in my library are all listed twice.  How do I delete the duplicates without removing the songs from my playlists and albums?

    Hello, juliego
    Thank you for visiting Apple Support Communities. 
    Here is a helpful guide on how to identify and delete duplicate media from your iTunes library. 
    How to find and remove duplicate items in your iTunes library
    http://support.apple.com/kb/ht2905
    Cheers,
    Jason H.

  • Query Tuning - using CASE statement in the WHERE clause - Duplicate Post

    Duplicate Post by mistake.
    Please check
    Query Tuning - using CASE statement in the WHERE clause
    Edited by: Chaitanya on Jun 9, 2011 2:45 AM
    Edited by: Chaitanya on Jun 9, 2011 2:46 AM

    Duplicate Post by mistake.
    Please check
    Query Tuning - using CASE statement in the WHERE clause
    Edited by: Chaitanya on Jun 9, 2011 2:45 AM
    Edited by: Chaitanya on Jun 9, 2011 2:46 AM

  • Duplicate Post

    We create lessons in Captivate that include swf demos that
    someone else records. We import the swf files onto one slide. (In
    the future we're going to do this differently, but we already have
    these lessons buildt and need them out there, like today!). We had
    the problem that if someone advanced to the next slide, the audio
    from the imported animation continued to play, so we added a flash
    stop audio file on a very short slide that the stop demo went to.
    That worked for a long time. It still works for another worker
    doing exactly the same thing with the same stop audio file, but my
    lessons have started doing really weird things.
    First, the first audio slide in some of the lessons started
    stopping after just a few words. I fixed that by creating an
    opening slide with some audio that isn't important (a car reving
    its motor). But as I continued to make changes and publish, now the
    second slide in some lessons is cutting out after a few words also.
    And then, often the audio on the slide AFTER a demo won't play at
    all. And sometimes when I publish it's different than other times.
    And sometimes it works great, then I publish it to our LMS and it
    doesn't work out there. Any ideas?
    I'm going
    crazy!!!!!!

    This is a duplicate post. Please direct responses to the
    original post. You may view the original post by
    clicking
    here.

  • Duplicate post, please ignore

    Hi everybody,
    At first, don't mistake me if my english language is very medium, moliere's language is my native language.
    So I installed Oracle 11g R2 on Linux Platform, and I try to create a new connection via SQL Developer.
    I put login, pass I create while proceeding installation
    and database name on SID
    But I have a TNS error when
    Best regards,
    Transact
    Edited by: transact on 4 déc. 2010 13:48

    transact wrote:
    The administrator, can he delete this post? Because it's here 3 per.
    Thanks.
    TransactNo, but you can hit the "edit" button on the first message in the thread and change the subject to something like "Duplicate post, please igonre". These double and triple posts are not that uncommon around here and most people understand (and have done it themselves). It seems to be due to slow response from the server and people hitting "post" button again and again, thinking it didn't "take" the first time.

  • Duplicate post - ignore please

    duplicate message whoops! please see the other post ;)

    transact wrote:
    The administrator, can he delete this post? Because it's here 3 per.
    Thanks.
    TransactNo, but you can hit the "edit" button on the first message in the thread and change the subject to something like "Duplicate post, please igonre". These double and triple posts are not that uncommon around here and most people understand (and have done it themselves). It seems to be due to slow response from the server and people hitting "post" button again and again, thinking it didn't "take" the first time.

  • Duplicate post, please delete this one. sorry

    this is a duplicate post. sorry guys, didnt mean to.

    When I encountered this in CP 1 or 2, it was because 'export
    as .zip
    file' (or whatever that option is) was not checked. You gotta
    publish to
    a .zip file to get the supporting SCO files...?
    Erik
    Dana_L wrote:
    > Cap4 did not publish
    > any of the SCORM resources (manifest, SCORM support,
    etc) or zip the files.
    >
    Erik Lord
    http://www.capemedia.net
    Adobe Community Expert - eLearning
    http://www.adobe.com/communities/experts/
    http://www.awaretips.net -
    Authorware Tips!

  • Duplicate post deleted

    >Duplicate post deleted to comply with the VZW ToS, Please follow the original post at the link below. This thread will be locked<
    Unsatisfactory Moto X Rollout
    Message was edited by: Verizon Moderator><

    here ya go:
    http://cache.vzw.com/multimedia/mim/stratosphere/stratosphere.pdf

  • Duplicate post - please ignore - sorry! :-(

    Duplicate post - please ignore - sorry! :-(

    I hate sites like this. There's no way to get from one
    sublevel to another
    without going to the top level.
    I suggest you not use fly-out-type menus, but instead, have
    subordinate
    sectional navigation on each page within a given section. You
    can easily do
    this with a single template using Library items in an
    editable region for
    the sectional navigation, or better, using server-side
    includes.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Andrew_G" <[email protected]> wrote in
    message
    news:e3bcqe$1fc$[email protected]..
    > Hi
    >
    > I have eight categories to display in my site
    navigation.
    > Each category has at least one (some have two) levels of
    subcategories.
    > For example for one of the categories :-
    > Health > Level One.
    > Mens Health > Level Two cascading from this.
    > Prostate Trouble > Level three cascading from Mens
    Health.
    >
    > I only want users to see the level ones (Health in the
    example above) on
    > initial browsing of the site and then by clicking on
    these the associated
    > sub-categories (of that category only) will be
    displayed.
    > How can I organise my navigation using templates or
    libraries to allow
    > this?
    > With only one template it's all or nothing as far as I
    can workout and I
    > suppose what I want is the equivalent of 8 libraries (?)
    to correspond
    > with my
    > 8 navigation headings.
    > I hope this makes more sense to you Dreamweaver experts
    than it does to me
    > reading it back
    > Many thanks
    >
    >

  • Duplicate post - disregard

    duplicate post, can be deleted.
    Edited by: ksmek on Nov 6, 2008 10:18 AM

    I hate sites like this. There's no way to get from one
    sublevel to another
    without going to the top level.
    I suggest you not use fly-out-type menus, but instead, have
    subordinate
    sectional navigation on each page within a given section. You
    can easily do
    this with a single template using Library items in an
    editable region for
    the sectional navigation, or better, using server-side
    includes.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "Andrew_G" <[email protected]> wrote in
    message
    news:e3bcqe$1fc$[email protected]..
    > Hi
    >
    > I have eight categories to display in my site
    navigation.
    > Each category has at least one (some have two) levels of
    subcategories.
    > For example for one of the categories :-
    > Health > Level One.
    > Mens Health > Level Two cascading from this.
    > Prostate Trouble > Level three cascading from Mens
    Health.
    >
    > I only want users to see the level ones (Health in the
    example above) on
    > initial browsing of the site and then by clicking on
    these the associated
    > sub-categories (of that category only) will be
    displayed.
    > How can I organise my navigation using templates or
    libraries to allow
    > this?
    > With only one template it's all or nothing as far as I
    can workout and I
    > suppose what I want is the equivalent of 8 libraries (?)
    to correspond
    > with my
    > 8 navigation headings.
    > I hope this makes more sense to you Dreamweaver experts
    than it does to me
    > reading it back
    > Many thanks
    >
    >

Maybe you are looking for

  • Print Out Through *MIR6* Standard Report

    Sir, I would like to take print out of selected line items ( i.e selected rows ) . Is it possible through standard report MIR6 . And if yes please tell me how?. or any other option. thanks.

  • Best machine for final cut pro HDv?

    I have posted a couple of times about problems with cpaturing HDv footage on my Powerbook G4 but no ones goes back to me . My machine capture HDv incredibly slowly I have these specs: 1.5 GHz processor 1.25 gb sdram and and Wd external 750 gb hard dr

  • Reason Code for MI07

    Hi MM Guru, I have created a inventory count document no: 100025069, When i try to post the difference in MI07 i need to have a reason code for the transaction. This is scrapping and movement type is 702. When i search for the code it does not apear

  • 0TCTBWOBJCT - Content Browser: BW Transactional Data Relationships

    Hi, Query on 0TCTBWOBJCT gives me information on Queries published according to roles menus... Now according to SAP Documents that cube is obselete and asking us to use 0TCTBIOBJCT (infoobject)...but with that info object i can get information Querie

  • File too large error or corrupt file error

    I have scanned some images using a Nikon Cool Scan and when trying to import the the NEF files into Lightroom I get a corrupt or unrecognized file error. Bring it into CS2 or CS3 and save as TIFF and try the import and get a File too large error. Any