Table 1 -
ID DATE ZIP USER_ID
111 6/1 11111 003
111 6/1 11111 708
Table 2 -
ZIP RTE DATE USER_ID
11111 1 6/1 003
11111 1 6/1 708
Key on Table 1 is ID, DATE
Key on Table 2 is ZIP, RTE, DATE
Dup key rows were inserted by mistake
I am looking to select ZIP from both tables on any instance where I have duplicate key, and USER_ID is 003 on one row, 708 in the other
ID DATE ZIP USER_ID
111 6/1 11111 003
111 6/1 11111 708
Table 2 -
ZIP RTE DATE USER_ID
11111 1 6/1 003
11111 1 6/1 708
Key on Table 1 is ID, DATE
Key on Table 2 is ZIP, RTE, DATE
Dup key rows were inserted by mistake
I am looking to select ZIP from both tables on any instance where I have duplicate key, and USER_ID is 003 on one row, 708 in the other