← 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?
- A.To remove days with no sales
- B.To keep days that have no sales, so they can be shown as 0
- C.To sort the dates
- 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 →