I want to be able to find occurrences in a table where one column is the same but another is different.
Example table:
id team week
1 1 1
1 2 1
2 2 1
2 1 2
I want a query that will find all ids where team is different yet week is still the same so something like team does not equal team, but week does equal week.
Basically I would like to know if any id changed teams in the same week, how do i do this?
1 Answer