I'm stuck on what to do next. I need to compose a query that tells me if a suppliers located in a specific city both ship a common part. I have created the following query
select sh1.partno,sh1.supplierno
from shipments sh1
where sh1.supplierno IN (
select s.supplierno
from suppliers s
where s.city = 'LONDON')
This returns
partno supplierno
P1 S1
P1 S1
P3 S1
P3 S1
P3 S1
P6 S4
P2 S4
P5 S4
P5 S4
I'm stuck on what to do next. Here are all the parts shipped by suppliers in the specified city. How do you compare these two columns so that you want to know if a common part number is shipped by the two different supplier numbers listed in the supplierno column. I know that this will have not results, but I still need to know how to move forward.
Thanks in advance