IM trying to
"Get the ID's of products ordered through any agent who takes at least one order from a customer in Kyoto, sorted by ID's from highest to lowest."
How would i write this in SQL? This is what i currently have
SELECT pid FROM orders
WHERE cid IN (
Select cid FROM customers
WHERE cid = 'c006'
);
Table: http://i.gyazo.com/dbe542fb2315d663c75c23e3ecfb74fd.png