Hi Guys
I have two tables Table1,Table2. I want to delete records from Table1 whose ID= CoventionalID field value from Table2.
Table1 has two fields (ID,PolicyNumber)
Table2 has 5 fields(ID,PolicyNumber,ConventionalID,ConventionalPolNo)
The following query doesn't delete anything. Any help will be much appreciated.
Thanks
I have two tables Table1,Table2. I want to delete records from Table1 whose ID= CoventionalID field value from Table2.
Table1 has two fields (ID,PolicyNumber)
Table2 has 5 fields(ID,PolicyNumber,ConventionalID,ConventionalPolNo)
The following query doesn't delete anything. Any help will be much appreciated.
Code:
DELETE *
FROM Table1 WHERE ID=(Select ConventionalID from Table2);
Thanks