Based on the tables below,which of the following ANSI SQL commands would return the average customer balance grouped by SalesRepNo? GENERAL SALES DATABASE:
SALESREP CUSTOMER
A) SELECT AVG (Balance)
FROM CUSTOMER
WHERE SalesRepNo;
B) SELECT AVG (Balance)
FROM CUSTOMER
GROUP BY SalesRepNo;
C) SELECT AVG (Balance)
FROM CUSTOMER,SALESREP
WHERE SALESREP.SalesRepNo = CUSTOMER.SalesRepNo;
D) SELECT AVG (Balance)
FROM CUSTOMER
ORDER BY SalesRepNo;
Correct Answer:
Verified
Q95: In an SQL query,which built-in function is
Q96: In an SQL query,which SQL keyword is
Q97: In an SQL query,which built-in function is
Q98: In an SQL query,which built-in function is
Q99: Assuming the "Quantity" column of an ORDER
Q101: Given the table CUSTOMER(CustID,Name,PhoneNumber,AccountBalance),write the standard SQL
Q102: In an SQL query of two tables,which
Q103: Suppose tables EMPLOYEE and CUSTOMER both store
Q104: The following database will be used in
Q105: The following database will be used in
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents