MySQL.
Two relevant tables.
table one (swatches)
swatch_id
swatch_desc
...other stuff that doesn't matter....
Table two (avail)
avail_id
swatch_id
product_id
..end
the query i want is this...
SELECT swatches.* from swatches WHERE swatches.swatch_id NOT_IN(SELECT swatch_id FROM avail WHERE product_id='somenumber')
But I know that mysql doesn't support sub-queries. (which it really should) ...
I know I have done this before but my brain is on too many hours of ASP and JAVA so help a brother out....
SELECT swatches.* from swatches LEFT JOIN avail ON swatches.swatch_id=avail.swatch_id WHERE avail.product_id='somenumber' AND ...?
tha_mink