Question : select only distinct values another table
Answered by : acad-helper
INSERT INTO Table2(Id) SELECT DISTINCT Id FROM Table1 WHERE Id NOT IN(SELECT Id FROM Table2);
Source : https://stackoverflow.com/questions/18599149/insert-distinct-values-from-one-table-into-another-table | Last Update : Sat, 08 May 21