Skip to content

Instantly share code, notes, and snippets.

@calexandrepcjr
Created April 1, 2021 20:41
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save calexandrepcjr/16fcb0c73a17d0fadf26f188c33dad13 to your computer and use it in GitHub Desktop.
Save calexandrepcjr/16fcb0c73a17d0fadf26f188c33dad13 to your computer and use it in GitHub Desktop.
Extract only rows from weekends
SELECT
*
FROM table
WHERE EXTRACT(ISODOW FROM created_at) IN (6, 7);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment