I think you just made it to hard on yourself. Try this:
Code:
SELECT DISTINCT EntStageName
FROM ENTERTAINERS E,
ENGAGEMENTS N
WHERE E.EntertainerID = N.EntertainerID
AND N.CustomerID IN (SELECT CustomerID
FROM Customers
WHERE CustomerName = 'Bonnickson')
AND N.CustomerID NOT IN (SELECT CustomerID
FROM Customers
WHERE CustomerName = 'Rosales')
That should get you what you need. I noticed you cheated and hardcoded the customerIDs in your joins which your prof probably wouldn't like, BUT if you could do it that way then change the select to this:
Code:
SELECT DISTINCT EntStageName
FROM ENTERTAINERS E,
ENGAGEMENTS N
WHERE E.EntertainerID = N.EntertainerID
AND N.CustomerID = 10011
AND N.CustomerID <> 10014
Bookmarks