I have two columns (both primary) [PLAYER_ID] [LEAUGE_ID]
something like this:
Player_id League_id
2139 8
2153 8
2302 10
2441 8
2441 10
I am trying to find the same player who played in both leagues
According to the table above, I am trying to only find:
Player_id League_id_1 League_id_2
2441 8 10
Thanks in advance!
If you don’t mind having it in rows:
This should return:
SQL Fiddle