help-query calcs

  • Thread starter Thread starter Guest
  • Start date Start date
Hi,

Can you add precisions?


You have 10 records in table A and 20 records in table B and you want to
delete records from table B that are in Table A ? The following may be a
first attempt:

DELETE DISTINCTROW tableB.* FROM tableA INNER JOIN tableB ON
tableA.key=tableB.key


where "key" is the assumed primary key field than can identify the "match"
between records.
 
thanks much
-----Original Message-----
Hi,

Can you add precisions?


You have 10 records in table A and 20 records in table B and you want to
delete records from table B that are in Table A ? The following may be a
first attempt:

DELETE DISTINCTROW tableB.* FROM tableA INNER JOIN tableB ON
tableA.key=tableB.key


where "key" is the assumed primary key field than can identify the "match"
between records.







.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Back
Top