Link to home
Start Free TrialLog in
Avatar of mwhodges
mwhodgesFlag for United States of America

asked on

SQL Outer Join Query Issue

I am trying to find all of the records in table 2 that do not exsist in Table 1 with some criteria like are open for business. I am using SQL 2000.
ASKER CERTIFIED SOLUTION
Avatar of Limbeck
Limbeck

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mbizup
Assuming you have a common ID field:

SELECT Table2.*
FROM table2 LEFT JOIN Table1 on Table2.ID = Table1.ID
WHERE Table2.OpenForBusiness = true and Tabale1.ID IS Null
Avatar of mwhodges

ASKER

Thanks for your quick responses. That fixed it.