I have below data in a table
Employee id Status email partition
A P [email protected] 1
A P [email protected] 2
D T [email protected] 1
D T [email protected] 2
G P [email protected] 1
G T [email protected] 2
We expect all three columns for one employee should be same for partition 1 and 2. If there is any employee for which either of the three columns are different between partition 1 and 2, those two records should be returned.
For the above data, query should return two records for Employee G. Could anyone please help with the query?