I want to be able to find occurrences in a table where one column is the same but the other is different.
Example table:
id team week
1 1 1
1 2 1
2 2 1
2 1 2
I need a query that finds all the identifiers in which the team is different, and the week is still the same, something like a team is not equal to the team, but the week is equal to the week.
Basically, I would like to know if any team ID changed in the same week, how do I do this?
source
share