Ok. You have duplicate keys in the target. One way to fix is add a key generation transform before the target and use this key as the unique identifier or primary key.
So your flow should look like this
Source > Query (ordering)>Table comparison > Key generation > Target