Hello!
there is a table for 150K rows with warehouse nomenclature
table view:
Activity | Warehouse | Cell-Off | Cell-Do | Capacity | Owner | Region | Timestamp
once a month there is an update of the table and it is necessary to synchronize them
1) deactivate not found lines
2) check if the owner has not changed on the matching lines in Warehouse | Cell-Off | Cell-Up
3) add new rows with data that has not yet been
I was looking for ready-made algorithms, but I didn’t find it, tell me how to do it correctly?
Thank you in advance!
delete from основная_таблица where not exists(select из временной)tabledelete from основная_таблица where not exists(select из временной)or clean the table altogether and replace it with a new version. - Mike