Solved

Bradford Would Like to Write a Query That Returns the Average

Question 22

Multiple Choice

Bradford would like to write a query that returns the average unit sales over the last 30 days for each of his bakery's product types: cupcakes, muffins, and cookies. There are several flavors of each in the table, but the product types are identified in a CATEGORY column as "Cupcake," "Muffin," or "Cookie." What should the last part of his query be, following the part shown below? ​
SELECT CATEGORY, AVG(UNIT_SALES) FROM PRODUCTS


A) ORDER BY CATEGORY;
B) GROUP BY CATEGORY;
C) BETWEEN ('Cupcake', 'Muffin', 'Cookie') ;
D) WHERE CATEGORY IN ('Cupcake', 'Muffin', 'Cookie') ;

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions

Unlock this Answer For Free Now!

View this answer and more for free by performing one of the following actions

qr-code

Scan the QR code to install the App and get 2 free unlocks

upload documents

Unlock quizzes for free by uploading documents