Daft subject header, but its early and brain not awake yet!
One for the SQL gurus (either that i've missed something here....lol)
I want to select rows where there are duplicates of data in some columns, but not others. Where a duplication IS found, i want to return all rows involved....
Table
A B C
1 w m
1 w n
1 x m
1 x n
2 x p
2 x q
2 y o
3 y r
3 z s
4 y t
5 z v
So i want to select:-
A B C
1 w m
1 w n
1 x m
1 x n
2 x p
2 x q
The selection contains all rows where there are duplicates of data in Column A and Column B. Reckon it could include a nested select statement perhaps with a 'Count > 1' in it somewhere; but just cant see it.....:confused:
Hoping its not too 'simple' and thanks for looking!
Mat