NetworkHound
Programmer
I am porting a project to MySql 4.0 and can't use the following query which is designed to return a list of options that have not been selected by a particular customer.
SELECT OptionID from OptionLookUp
WHERE NOT EXISTS
(SELECT *
FROM CustomerOptionsTable
WHERE CustomerOptionsTable.OptionID=OptionLookUp.OptionID
AND CustomerOptionsTable.CustomerID=7689)
Can anyone suggest a workaround that will return either :
1) the same result
or
2) a recordset that includes all available options and distinguishes between selected and unselected options for the particular customer.
All help gratefully received.
SELECT OptionID from OptionLookUp
WHERE NOT EXISTS
(SELECT *
FROM CustomerOptionsTable
WHERE CustomerOptionsTable.OptionID=OptionLookUp.OptionID
AND CustomerOptionsTable.CustomerID=7689)
Can anyone suggest a workaround that will return either :
1) the same result
or
2) a recordset that includes all available options and distinguishes between selected and unselected options for the particular customer.
All help gratefully received.