I have 3 columns in Oracle database having table mytable and i want records having only duplicate values in 2nd and 3rd column.
SQL> select * from mytable ;
column1 column2 column3
A 50 50----required output
A 10 20----have different values i.e. 10 and 20
A 50 50----required output
A 30 70----have different values i.e. 30 and 70
B 20 20----required output
B 40 30----have different values i.e. 40 and 30
I want the following output with count(*):
column1 column2 column3
A 50 50
A 50 50
B 20 20
Any help is much appreciated
column1isn't unique is it mistake in example data?