Skip to content
Advertisement

Mysql select the same values in different rows and different column

I want to select the rows with the same values in old_id and new_id so my select should return row 1 and 4 from the example

I have this query but it doesn’t work it just returns all the records

Advertisement

Answer

Try this below logic-

User contributions licensed under: CC BY-SA
8 People found this is helpful
Advertisement