in (1) this subquery
Code:
(select ordid
from item,product
where item.prodid = product.prodid
and product.descrip like '%TENNIS%')
minus
(select ordid
from item,product
where item.prodid = product.prodid
and product.descrip not like '%TENNIS%')
should return ordid of those ordids who ordered items with desctiption which contains the word 'TENNIS' minus those with description which does not contains the word 'TENNIS'
and get the name of customers with those ordids.
in (2) i first get the names who ordered items with desctiption which contains the word
'TENNIS' minus names who ordered items with description which does not contains the word 'TENNIS'.
isn't the same ?