I need help solving the query "List names of customers that are requesting at least one product but not requesting milk. I have a rough start on it, but I have no idea how to finish it. Here's what I have so far.
SELECT DISTINCT
Tb_Consumer.Con_ID, Tb_Consumer.Name
FROM
Tb_Consumer, Tb_Requests
WHERE
Tb_Consumer.Con_ID = Tb_Requests.Con_ID
AND Tb_Consumer.Con_ID NOT IN (SELECT Tb_Consumer.Con_ID)
The output I'm looking for is this.
Con_id Name
----------------
2 Hammer
4 Hoffer