Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Query Question 2

Status
Not open for further replies.

Ernestw

Programmer
Feb 6, 2002
13
US
I have two tables that should have the same records. However, that is not the case. The common field is part_SN. I should like to run a query that selects the records from table 1 that are not in table 2. I built a SQL statement, but it is incredible slow.

TIA,

Ernie
 
ernie,

try this query

Query
ANSWER: :pRIV:ANSWER.DB

table1.db | partSN |
| _join1, count=0 |

Table2.db | partSN |
| Check _join1! |

EndQuery

hope this helps
hans
 
Hans,

Thank you. Your suggestion works fine.

Ernie
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top