Assuming you know that column3 will always be different to get rows that have more than one value:
SELECT Col1, Col2 FROM Table t GROUP BY Col1, Col2 HAVING COUNT(distinct col3) > 1
If you need all the values in the three columns, you can join it back to the original table:
SELECT t.* FROM table t join (SELECT Col1, Col2 FROM Table t GROUP BY Col1, Col2 HAVING COUNT(distinct col3) > 1 ) cols on t.col1 = cols.col1 and t.col2 = cols.col2
Gordon linoff
source share