Question: These queries use the CUSTOMERS - PRODUCTS - AGENTS - ORDERS tables. CUSTOMERS ( cid , cname, city, discnt ) AGENTS ( aid , aname,
These queries use the CUSTOMERSPRODUCTSAGENTSORDERS tables.
CUSTOMERScid cname, city, discnt
AGENTSaid aname, city, percent
PRODUCTSpid pname, city, quantity, price
ORDERSordno month, cid, aid, pid, qty dollars
List the name of all products for which an order was placed.
List the name of customers that ordered product p
List name of agents that placed an order for customer c or customer c
List name of customers that ordered product p through agent a
List the name of each customer that placed an order, the pid of what they ordered.
List the name of each customer that placed an order and the product name for each product they
ordered.
List the name of each customer and the total amount ordered by the customers and also list the
customers that did not place an order.
List the name and the sum of dollars for each customer that ordered more than $
List the agent name, product name and customer name for each product ordered.
What would be the result of the following SQL Statement: SELECT From CUSTOMERS,
PRODUCTS
SELECT
From CUSTOMERS, PRODUCTS
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
