I have 3 tables, ERA, RA and LOCS
with the following columns of interests in the respective tables
- ERA: REMOTE_ID, LOCS_KEY, CUR
- LOCS: LOCS_KEY
- RA: REMOTE_ID
What im trying to accomplish:
1 - Get rows where CUR = 0 in table ERA ( This is easy enough to do)
2 - Then Delete from:
- LOCS: rows matching LOCS_KEY found in 1
- RA: rows matching REMOTE_ID from 1