Query Search

Arg81

Well-known member
Joined
Mar 11, 2005
Messages
949
Location
Midlands, UK
Programming Experience
1-3
Simple Question, although I can't think straight today:

How can I compare 2 tables, and load data from Table1 based on my ID NOT existing in Table2?

I want to do this as a normal dataAdapter if possible, but think I need to call it as a stored procedure.

Basically I want my form to load all parent records that don't have any child records


Regards,
Luke
 
solved

Finally found a post on here, and adjusted my code as necessary;

VB.NET:
Expand Collapse Copy
select tblRequest.RequestID from tblRequest full join tblRequest_Work on tblRequest.RequestID = tblRequest_Work.RequestID
where tblRequest_Work.RequestID is null

simple!
 
Back
Top