Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Mailing Lists -> Oracle-L -> SQL Query

SQL Query

From: Ramasubramanian, Shankar (Cognizant) <RShankar1_at_CHN.COGNIZANT.COM>
Date: Thu, 18 Jul 2002 12:34:40 -0800
Message-ID: <F001.0049BE48.20020718123440@fatcity.com>


Hi Friends,

        I just need a help in a sql . I am having rows in a table as follows

Field1(ID) Field2(NAME)


1		  RAM
1		  SHAM
1		  PAT
2		  MAN
2		  JOHN

Now i want the output to be as follows

FIELD1 FIELD2


1		RAMSHAMPAT
2		MANJOHN

In the output i have to show all the names for the same id in a single row. Please help me in getting this output using a SQL query and not through cursors.

Thanks in advance.

Regards,
Shankar


-- 
Please see the official ORACLE-L FAQ: http://www.orafaq.com
-- 
Author: Ramasubramanian, Shankar (Cognizant)
  INET: RShankar1_at_CHN.COGNIZANT.COM

Fat City Network Services    -- (858) 538-5051  FAX: (858) 538-5051
San Diego, California        -- Public Internet access / Mailing Lists
--------------------------------------------------------------------
To REMOVE yourself from this mailing list, send an E-Mail message
to: ListGuru_at_fatcity.com (note EXACT spelling of 'ListGuru') and in
the message BODY, include a line containing: UNSUB ORACLE-L
(or the name of mailing list you want to be removed from).  You may
also send the HELP command for other information (like subscribing).

Received on Thu Jul 18 2002 - 15:34:40 CDT

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US