1-way sync delete
Loop until all keys are processed, or the difference in row... Delete the row corresponding to the primary key in destination Key found Search the destination primary key among the source primary... For each primary key in destination Read all primary keys from source, and sort them Are there more rows in destination then in source? Count records from destination table Count records from source table destination database destination database destination database source  database source  database source  database Delete missing rows