Let me first give some example table table which will make my question easier to understand.
Column1 Column2 Column3
Valuea Value123 Value456
Valueax Value123 Value456
Valueb Value123 Value456
Valueb Value123 Value456
select Column1,
Column2,
Column3,
count(*)
from ColumnName
group by
Column1,
Column2,
Column3,
having count(Count2+Count3) > 1
I want to return 'column1', 'column2', 'column3' where column 2and3 will contain more than more duplicates but 'column1' must be different. So at present the above code would return:
Valueb Value123 Value456 2
but i want it to return
Valuea Value123 Value456
Valueax Value123 Value456
where column1 has different values but column2 and column3 values are the same.