I ma making one incremental load where I insert new rows, updated rows and eliminate rows.
The problem is the base is not complete, because for saving espace in the server has one limitation of rows. It means the old ones are little by little being erased.
I need maintain in the Completed Base the old ones.
Hi, the last join does the 'delete' part, so if any value is not in this table it will be deleted.
You will need to obtain the lower primary key that the database has, do the "concatenate where not exists" and "join" codes with values higher or equal than this primary key, and add a step that adds all the values stored lower that the primary key.
Note that for rows with lower PrimeryKey than the one in database you can't control when it was deleted by an user or by the automatic deletion of database.