After filling in the dataset from the TQuery MergeChangeLog call so that the records do not stand out as recently inserted, and make sure LogChanges installed.
Then, when in the last step, before updating the query using the dataset, set the StatusFilter so that only the records you want to take are displayed. For instance,
ClientDataSet1.StatusFilter := [usDeleted];
You can also use UpdateStatus in a record to find out if it has been modified, etc.
But be careful, it seems that there will be several versions of the record, and itβs a little difficult to understand how the change log is tracked. And there can also be several actions on the record, for example, changing it several times, and then deleting it.
source share