I want to find rows in my table that have duplicate values accross columns in a the same row
Example:
id column_1 column_2 column_3
1 123 44 100
2 555 555 555
3 101 396 100
4 99 99 99
5 123 44 100
I need a query that returns rows 2 & 4. So far, I have only found questions with similar titles that refer to finding rows that have the same values in multiple columns that would for example return 1 & 5. That's not what I am looking for :)
where col1=col2 and col2=col3