A subquery should do the trick.
It's sometimes helpful to think of these from the "inside out":
First find the set of CUSTOMERNUMBER's which have ordered the ProductModelNumber you want to exclude:
Code:
SELECT CUSTOMERNUMBER
FROM tbl_orders
WHERE ProductModelNumber = 'H5160R'
Then the result you are looking for are those customers NOT in this set:
Code:
SELECT DISTINCT CUSTOMERNUMBER
FROM tbl_orders
WHERE CUSTOMERNUMBER NOT IN
(SELECT CUSTOMERNUMBER
FROM tbl_orders
WHERE ProductModelNumber = 'H5160R')
Jeff Mason
Custom Apps, Inc.
www.custom-apps.com