The simplest way to do it is to export your data from SQL to an excel file and create a file with test cases from both SQL and the original excel file. Now, use excel functions / macros to filter and remove rows with duplicate testcase ids.
This[
^] link should be helpful for the duplicate removal.