🎙 Free live masterclass · Sun, 29 Nov, 7:00 pm IST · Java Full Stack roadmap Register free →
Skills101
← Quiz: Recursive CTEs: all 15 questions

Quiz: Recursive CTEs · Question 7 of 15

Why is a calendar CTE LEFT JOINed to the sales table?

Why is a calendar CTE LEFT JOINed to the sales table?

  1. A.To remove days with no sales
  2. B.To keep days that have no sales, so they can be shown as 0
  3. C.To sort the dates
  4. D.LEFT JOIN is faster than INNER JOIN
Answer & explanation

Correct answer: To keep days that have no sales, so they can be shown as 0

An inner join would drop the empty days, which is what we wanted to avoid.

Can you get the rest right without peeking?

Take the timed Quiz: Recursive CTEs quiz free. Pass it to earn XP and count towards your certificate.

Start the quiz →