I would like to insert records to "tbl_Variants" where [ID] (primary key) doesn't match records from the "tbl_Variant_qry" table. There is one record that fits this description however the query fails to insert that records. Please suggest how to fix the query. Thanks, Mila
Here is the sql:
Here is the sql:
Code:
INSERT INTO tbl_Variants ( sample_id, gene, exon, cDNA, aa_change, ID )
SELECT tbl_Variants.sample_id, tbl_Variants.gene, tbl_Variants.exon, tbl_Variants.cDNA, tbl_Variants.aa_change, tbl_Variants.ID
FROM tbl_Variant_qry INNER JOIN tbl_Variants ON tbl_Variant_qry.[ID] = tbl_Variants.[ID]
WHERE (([tbl_Variants].[ID]<>([tbl_Variant_qry].[ID])));