Skip to content

Instantly share code, notes, and snippets.

@nashmaniac
Last active July 28, 2022 04:02
Show Gist options
  • Save nashmaniac/9264758f8a6d0266faf5f98364f2b2fb to your computer and use it in GitHub Desktop.
Save nashmaniac/9264758f8a6d0266faf5f98364f2b2fb to your computer and use it in GitHub Desktop.
basic-sql-construct
SELECT -- required, contains column names comma separated, if you need everything then use *
FROM -- required, name of the sheet
WHERE -- optional, generally contains the filtering criteria
ORDER BY -- optional, used for sorting. Default is low to high. if high to low needed use `desc`
GROUP BY -- optional, used for pivot table kind of query
HAVING -- optional, filtering on the group by
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment