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!

Compare two database in VB

Status
Not open for further replies.

dambrose

MIS
Aug 29, 2002
3
US
I have two database. One database holds a list of all the employees. The second database holds a list of data from a survey which tracks who entered the survey. What I want to do is have vb look at the first database to get a list of all the employees. Then compare it to the second database and get a list of employees that they have not completed the survey for. Can someone please help with this?
 
Hi,

Here's some SQL that returns such a list...
Code:
SELECT Distinct EmpNbr
FROM Employees
WHERE (EmpNbr Not In (Select EID from Survey))
:)

Skip,

Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top