Skip to content

Creating a calendar CTE ('or table) automaticaly #1992

Answered by Charlesnorris509
fdecourt asked this question in Q&A
Discussion options

You must be logged in to vote

Hey @fdecourt

The reason why you are experiencing these difficulties, is because AlaSql doesnt support all the traditional feature of Nosql database, Here possible solution specific to your use case:
convert each integer into a date by adding it to the base date (2022-01-01) using JavaScript's new Date() function within the SQL query.
Format the resulting date as a string in the desired format (YYYY-MM-DD).

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by mathiasrw
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants