How can I select just one row from a table with the same value in multiple rows?
Printable View
How can I select just one row from a table with the same value in multiple rows?
select Distinct?
I tried that.
Crystal ball broken today. Maybe you could elaborate with an example?
select id, count(*)
from table_A
group by id
having count(*) > 1;
Is that you want?
Tamil
Where rownum <2 ?
YES! The ROWNUM < 2 worked. Thank you all of you out there for your help.
select id
from table
group by id;
Quote:
Originally posted by irivera
YES! The ROWNUM < 2 worked. Thank you all of you out there for your help.
Wow, now I am a genius!
:D
MH