Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Generating Date Ranges | Recursive CTEs and Hierarchical Data
Practice
Projects
Quizzes & Challenges
Quiz
Challenges
/
Mastering Common Table Expressions (CTEs) in SQL
Section 2. Chapitre 6
single

single

bookChallenge: Generating Date Ranges

Glissez pour afficher le menu

Tâche

Swipe to start coding

Create a recursive CTE that generates all dates between two given dates, inclusive.

  • Start with a base case that selects the initial date as report_date.
  • Recursively add one day to the previous report_date until the end date is reached.
  • The output must include every date from the start date to the end date, inclusive.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 2. Chapitre 6
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

some-alt