Hi, I have two tables the first one contains the history of book sales and looks something like this:
CUST# BOOK# QTY
12345 A9999 1
12345 B0001 2
98765 A9999 5
99999 C0009 2
...
The second table just contains a subset of books that I am interested in, like:
BOOK#
A9999
G1234
Z1111
What I want to do is to make a query that would return the list of books from the second table that have NOT been purchased by a certain customer. For example if I enter in the customer number 12345, it would return G1234 and Z1111. I can make a query that returns the books on the list that a customer has purchased, but I can't seem to figure out how to return the unpurchased book numbers. I have a feeling it is something really simple, so please don't be too hard on me for not figuring this out. Any help would be appreciated, and thanks in advance.
CUST# BOOK# QTY
12345 A9999 1
12345 B0001 2
98765 A9999 5
99999 C0009 2
...
The second table just contains a subset of books that I am interested in, like:
BOOK#
A9999
G1234
Z1111
What I want to do is to make a query that would return the list of books from the second table that have NOT been purchased by a certain customer. For example if I enter in the customer number 12345, it would return G1234 and Z1111. I can make a query that returns the books on the list that a customer has purchased, but I can't seem to figure out how to return the unpurchased book numbers. I have a feeling it is something really simple, so please don't be too hard on me for not figuring this out. Any help would be appreciated, and thanks in advance.