Question: For SQL (Database Management Systems): The tables are CUSTOMERS -CUSTOMER_ID -CUSTOMER_FIRST_NAME -CUSTOMER_LAST_NAME -CUSTOMER_CITY ORDER_DETAILS -ORDER_ID -ORDER_QTY ORDERS -ORDER_ID -CUSTOMER_ID A. Find the name and phone

For SQL (Database Management Systems):

The tables are

CUSTOMERS

-CUSTOMER_ID

-CUSTOMER_FIRST_NAME

-CUSTOMER_LAST_NAME

-CUSTOMER_CITY

ORDER_DETAILS

-ORDER_ID

-ORDER_QTY

ORDERS

-ORDER_ID

-CUSTOMER_ID

A. Find the name and phone number of each vendor who has a cooperating vendor. Hint: the vendors for whom the field Cooperating_Vendor_id is not empty

B. Now find additionally the name and phone number of the cooperating vendor. Present these two columns as: cooperating vendor and cooperating vendor phone.

C. Modify the above query to report all vendors. If they are have a cooperating vendor, report their name if not report N/A.

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!