TableB is essentially an archive table (it exists in a different DB on the same server).
Since TableA allows DELETEs, if I truncate TableB and then just copy from TableA, I'll lose records from TableB.
The rule is, keep in TableB the latest version of every row that has existed in TableA.
I have two tables, TableA and TableB.
TableB holds a copy of some records in TableA. TableB is read only.
TableA is live--rows are added, deleted, and updated regularly.
I need to write a script to see if rows from TableA which correspond to rows that exist in TableB (by corresponding ID...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.