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

single

bookChallenge: Generating Date Ranges

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 2. Capítulo 6
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

some-alt