Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprende Challenge: Generating Date Ranges | Recursive CTEs and Hierarchical Data
/
Mastering Common Table Expressions (CTEs) in SQL
Sección 2. Capítulo 6
single

single

bookChallenge: Generating Date Ranges

Desliza para mostrar el menú

Tarea

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.

Solución

Switch to desktopCambia al escritorio para practicar en el mundo realContinúe desde donde se encuentra utilizando una de las siguientes opciones
¿Todo estuvo claro?

¿Cómo podemos mejorarlo?

¡Gracias por tus comentarios!

Sección 2. Capítulo 6
single

single

Pregunte a AI

expand

Pregunte a AI

ChatGPT

Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla

some-alt