delete where matches another table

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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!
 
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.
 
Back
Top