Results 1 to 2 of 2

Thread: Concat

  1. #1
    Join Date
    May 2013
    Posts
    33

    Unanswered: Concat

    Code:
    select * from table;
    
    Date | Indicator | Name
    ---------------|----------------|
    01/01/2004| 1 | Mr Smith
    01/01/2004| 2 | Mr Brown
    02/01/2004| 1 | Mr Jones
    02/01/2004| 2 | Mr White
    02/01/2004| 3 | Mr Black
    
    SELECT date, GROUP_CONCAT(Name) as namelist 
    FROM table 
    GROUP BY date;
    
    Date | namelist
    --------------- |--------------|--------------|
    01/01/2004 | Mr Smith, Mr Brown |
    02/01/2004 | Mr Jones, Mr White, Mr Black|
    In Mysql, they joined the names of the employee in a single column using date.
    Likewise, i want query in oracle to do the same.

    help me if anyone knows....

  2. #2
    Join Date
    Aug 2003
    Location
    Where the Surf Meets the Turf @Del Mar, CA
    Posts
    7,776
    Provided Answers: 1
    You can lead some folks to knowledge, but you can not make them think.
    The average person thinks he's above average!
    For most folks, they don't know, what they don't know.
    Good judgement comes from experience. Experience comes from bad judgement.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •