Hi,
I am trying to retrieve just the rows that have a duplicate column value from a distinct result set.
For example.....
If I do SELECT DISTINCT col1, col2 FROM table I get....
col1 col2
1...... a
2.......b
2...... c
3...... d
From these results I am trying to retrieve just the rows that have duplicates in col1, in this case just the rows where col1 has a value of 2. After everything I have tried, I can't get just these 2 rows. Any help would be greatly appreciated. Thanks in advance.
Regards,
Jay