D dark11984 Registered User. Local time Tomorrow, 05:54 Joined Mar 3, 2008 Messages 129 Aug 19, 2008 #1 I have 2 tables, [Prod Code data table] & [comment table]. I want to delete all records in the comment table where the prod code does not appear in the prod code data table. Is this possible?
I have 2 tables, [Prod Code data table] & [comment table]. I want to delete all records in the comment table where the prod code does not appear in the prod code data table. Is this possible?
G georgedwilkinson AWF VIP Local time Today, 14:54 Joined Mar 4, 2008 Messages 3,856 Aug 19, 2008 #2 Code: delete from [comment table] where [prod code] not in (select [prod code] from [Prod Code data table]; You really shouldn't use spaces or special characters in table/column names.
Code: delete from [comment table] where [prod code] not in (select [prod code] from [Prod Code data table]; You really shouldn't use spaces or special characters in table/column names.