Question: You are working with the tables as shown in the diagram. You need to generate the list of price totals for each make and model of car, with subtotals for each make, and the grand total of all prices. Which SQL clause do you use?

  1. UNION
  2. SHOW TOTALS
  3. UNION ALL
  4. WITH ROLLUP

Answer: The correct answer of the above question is Option D:WITH ROLLUP