Hi,
Im writing a query which will delete the rows of one table where its contents in two of it fields matches two contents of another tables fields. The code I have thus far is shown below:
It just doesn't do anything! I changed the DELETE to a SELECT to see if anything was selected and that didn't even work! And yes I am 100% the data was present in both tables to meet the criteria stated!
All help would be much appreciated,
Regards,
unixkid
Im writing a query which will delete the rows of one table where its contents in two of it fields matches two contents of another tables fields. The code I have thus far is shown below:
Code:
DELETE *
FROM TABLE1
WHERE DocName= (SELECT DocName FROM TABLE2) AND GroupName = (SELECT GroupName FROM TABLE2);
It just doesn't do anything! I changed the DELETE to a SELECT to see if anything was selected and that didn't even work! And yes I am 100% the data was present in both tables to meet the criteria stated!
All help would be much appreciated,
Regards,
unixkid