id | code |
12 | US |
12 | US |
13 | US |
13 | AZ |
14 | US |
14 | AZ |
I want to return a column that says True if the code for every pair is same and false if not. Want to check for pairs of ids. All id values in the column are in pairs
Expected Result of this question
id | match |
12 | TRUE
13 | FALSE
14 | FALSE
Tried solving it similar to : Finding rows with same values in multiple columns but the answer was too long