* 1. Get rows that are present in both tables but have CHANGED. * Same idea as before but add 2nd SELECT: SELECT ; * ; FROM Master ; UNION ; SELECT ; * ; FROM Temp ; INTO CURSOR Crs1 SELECT ; PKey, ; COUNT(*) AS Cnt ; FROM Crs1 ; GROUP BY PKey ; HAVING Cnt > 1 ; INTO CURSOR Crs2 * The above yields a list of PKeys present in both tables but where rows are different * 2. Get rows present in TEMP but not in MASTER: SELECT ; * ; FROM Temp ; WHERE Temp.PKey NOT IN ; ( SELECT PKey FROM Master ) ; INTO CURSOR Crs3 * 3. Get rows present in MASTER but not in TEMP: SELECT ; * ; FROM Master ; WHERE Master.PKey NOT IN ; ( SELECT PKey FROM Temp ) ; INTO CURSOR Crs4There may be a more elegant way to do this in one SELECT but this should work for now.