tigertim71
Registered User.
- Local time
- Today, 21:11
- Joined
- Apr 18, 2008
- Messages
- 12
In this example I have two tables:
Table A has numbers 1-10. Table B has numbers 1-4.
What I would like to to is to remove all records in Table B from Table A, so I am left with records 5-10.
I have already done this using an unmatched query, but would it be possible to do this using a quick delete in the query builder? If so, how, and is it possible to drag Table B to under Table A without selecting all the statements (as below)?
Additionally if it was an SQL statement would it be the following or is there a better way?:
Thanks,
Tim
Table A has numbers 1-10. Table B has numbers 1-4.
What I would like to to is to remove all records in Table B from Table A, so I am left with records 5-10.
I have already done this using an unmatched query, but would it be possible to do this using a quick delete in the query builder? If so, how, and is it possible to drag Table B to under Table A without selecting all the statements (as below)?
Additionally if it was an SQL statement would it be the following or is there a better way?:
Code:
DELETE xName1.id
FROM xName1
WHERE (((xName1.id) In (1,2,3,4)));
Thanks,
Tim