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:

Verified
Correct Answer:
Verified
Q1: What clause can you use to list
Q3: You form compound conditions by connecting two
Q4: What is the appropriate sequence for the
Q5: Imagine you are working with a MySQL
Q6: In the SELECT clause, you can indicate
Q7: Describe simple and compound conditions.
Q8: The only arithmetic operators that can be
Q9: It is possible to use both a
Q10: Which function calculates a total of the
Q11: How do you construct the SELECT query?