Skip to content

Instantly share code, notes, and snippets.

@nathanmpark
Created October 8, 2015 07:56
Show Gist options
  • Save nathanmpark/d891d7d73adaa12333bf to your computer and use it in GitHub Desktop.
Save nathanmpark/d891d7d73adaa12333bf to your computer and use it in GitHub Desktop.
/* Group clauses in this order: */
SELECT select_list [ INTO new_table ]
[ FROM table_source ] [ WHERE search_condition ]
[ GROUP BY group_by_expression ]
[ HAVING search_condition ]
[ ORDER BY order_expression [ ASC | DESC ] ]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment