Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

query reg removing logical dup rows

609826Jun 24 2010 — edited Jun 25 2010
Hi Gurus,

Could you please help giving a query with the req as below

I have a table 'tbl'

Col1 Col2
------ -------
A Wt
A Qu
B Cn
B Qu
B Em
C Qu
D Wt
D Qu
D Em

the query result should be

Col1 col2
----- -------
A WtQu
B Cn
B Qu
B Em
C Qu
D WtQU
D Em


i.e whenever i have Wt and Qu values(in col2) for the same Col1 value (here A and D) then the values shuld be concatinated and only one record with this concatinated value should be displayed.

Could you please help.Thanks in advance !

BR
Sridha
This post has been answered by Preta on Jun 24 2010
Jump to Answer

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jul 23 2010
Added on Jun 24 2010
7 comments
1,190 views