Title: The following database will be used in this question:GENERAL SALES ... Post by: darla on Feb 9, 2019 The following database will be used in this question:
GENERAL SALES DATABASE: SALESREP
CUSTOMER
Explain the use of the GROUP BY keyword. Include an example based on the CUSTOMER table from the General Sales database. Title: The following database will be used in this question:GENERAL SALES ... Post by: saltyfishzz on Feb 9, 2019 The GROUP BY keyword is used in conjunction with the built-in functions of SQL. The GROUP BY keyword is given a column that records are to be grouped on. Records in the result table are then collected into groups based on the value of the grouping column. The built-in function is then performed on the records of each group separately. For example,
SELECT AVG(Balance) FROM CUSTOMER GROUP BY SalesRepNo; is a query that returns the average balance of all customers associated with a specific sales representative. Title: The following database will be used in this question:GENERAL SALES ... Post by: darla on Feb 9, 2019 Smart ... Thanks!
|