The following query totals sales in state= 'MA' for each salesperson.
SELECT salesperson_id, sum(sales)
FROM salesperson
GROUP BY salesperson_id
HAVING state = 'MA';
Correct Answer:
Verified
Q77: The asterisk (*) wildcard designator can be
Q78: The ALTER TABLE command is used to
Q79: The DELETE TABLE DDL command is used
Q80: In databases, null values are equivalent to
Q81: When creating a table, it is not
Q83: The WHERE clause is always processed before
Q84: Discuss the pros and cons of using
Q85: What steps should be followed when preparing
Q86: Discuss when to use the GROUP BY
Q87: The following two SQL statements will produce
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