Biology Forums - Study Force

Science-Related Homework Help Computer Studies Topic started by: helpmepls on Feb 9, 2019



Title: Based on the tables below, which of the following SQL commands would return the average customer ...
Post by: helpmepls on Feb 9, 2019
Based on the tables below, which of the following SQL commands would return the average customer balance grouped by SalesRepNo?

GENERAL SALES DATABASE:

SALESREP
SalesRepNoRepNameHireDate
654Jones01/02/2005
734Smith02/03/2007
345Chen01/25/2018
434Johnson11/23/2004

CUSTOMER
CustNoCustNameBalanceSalesRepNo
9870Winston500345
8590Gonzales350434
7840Harris800654
4870Miles100345


• SELECT AVG (Balance)
FROM CUSTOMER
WHERE SalesRepNo;

• SELECT AVG (Balance)
FROM CUSTOMER
GROUP BY SalesRepNo;

• SELECT AVG (Balance)
FROM CUSTOMER, SALESREP
WHERE SALESREP.SalesRepNo = CUSTOMER.SalesRepNo;

• SELECT AVG (Balance)
FROM CUSTOMER
ORDER BY SalesRepNo;


Title: Based on the tables below, which of the following SQL commands would return the average customer ...
Post by: chenandrew1219 on Feb 9, 2019
Content hidden


Title: Based on the tables below, which of the following SQL commands would return the average customer ...
Post by: helpmepls on Feb 9, 2019
Thanks