help-query calcs

M

Michel Walsh

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.
 
G

Guest

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.







.
 
Top