By using db<>fiddle, you agree to license everything you submit by Creative Commons CC0.
CREATE TABLE
CREATE TABLE
INSERT 0 3
INSERT 0 3
| comparisondescription | pk | col1 | col2 | pk | col1 | col2 |
|---|---|---|---|---|---|---|
| In both tables, but contents differ | 2 | 101 | 1001 | 2 | 0 | 0 |
| In Table1, and not in Table2 | 3 | 102 | 1002 | null | null | null |
| In Table2, and not in Table1 | null | null | null | 4 | 103 | 1003 |
SELECT 3