Query to compare data

G

Guest

I have one table that lists all of the hotfixes that are supposed to be on
our computers and a SQL query that gives me the PC name and each patch that
has been applied to it. I'd like to have a query check the master list of
hotfixes against the hotfixes that have been applied to return any patches a
PC is missing. Can this be done?
 
M

Marshall Barton

Matt said:
I have one table that lists all of the hotfixes that are supposed to be on
our computers and a SQL query that gives me the PC name and each patch that
has been applied to it. I'd like to have a query check the master list of
hotfixes against the hotfixes that have been applied to return any patches a
PC is missing.

Create a new query using the Find Unmatched Query wizard.
 
M

[MVP] S.Clark

I'm assuming that there exists another table that stores just PC's, then one
more table that stores the hotfix number and date applied.

Given this, you would solve by the inverse. Exclude all PC's that DO have
the fix you're looking for, which will leave you with those that DON'T.

Otherwise, you have to do some set theory - Venn diagram stuff, and ya don't
wanna go there.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top