Skip to content

Instantly share code, notes, and snippets.

@vilmid
Last active October 4, 2021 05:18
Show Gist options
  • Select an option

  • Save vilmid/998d7786b031315d40a6fef8529c233b to your computer and use it in GitHub Desktop.

Select an option

Save vilmid/998d7786b031315d40a6fef8529c233b to your computer and use it in GitHub Desktop.
SELECT
day::date
FROM
generate_series(current_date - interval '30 day', current_date, '1 day') AS day
;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment