delete where matches another table

D

denise

How can I delete from table called folder the records that are in table
called cancelled_folder? This is the query to select the matches:

select * from folder, cancelled_folder where folder.medrec_num =
cancelled_folder.field1

I can't get the syntax right for this and would appreciate any ideas. Thanks!
 
R

Rick B

Just a suggestion, why store this in two tables? Put it all in one table
and add a field to indicate "cancelled". It could be a checkbox or a date
field.
 
D

denise

Thanks very much, this worked for what I was trying to do. I wasn't using
exists.
 
Top