Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Oppiskele Challenge: Generating Date Ranges | Recursive CTEs and Hierarchical Data
Mastering Common Table Expressions (CTEs) in SQL
Osio 2. Luku 6
single

single

bookChallenge: Generating Date Ranges

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 2. Luku 6
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

some-alt