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!

Query Unique Records WITH ROWID

ramarunFeb 11 2010 — edited Feb 12 2010
Hi All,

I have 2 columns which returns records like this Say Column A and Column B.

A B
--------
1 1
1 1
2 2
2 2
3, 3

I need only distinct records from these columns. So i executed DISTINCT Clause in my query and it returned unique records. Issue is I need to execute a query like this i.e compulsorily use ROWID in my select list.

i.e SELECT DISTINCT ROWID A, B from TEST;

But this query we will give duplicated records only when we give rowid, how to achieve a output like this using rowid in the column select list of my query.


A B
--------
1 1
2 2
3, 3

Please Help.

Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 12 2010
Added on Feb 11 2010
5 comments
5,094 views