Question: Write an SQL SELECT query that returns vendorID pairs that have the same zip code; also return the vendorZipCode. Now, vendorID #17 obviously has the

Write an SQL SELECT query that returns vendorID pairs that have the same zip code; also return the vendorZipCode. Now, vendorID #17 obviously has the same vendorZipCode as vendorID #17; however, do not return a pair unless it contains two different vendorID values. (Hint: use a self join.)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!