Skip to content

Instantly share code, notes, and snippets.

@allensb
Created May 6, 2015 03:03
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 allensb/5f6a0301f039897a8fad to your computer and use it in GitHub Desktop.
Save allensb/5f6a0301f039897a8fad to your computer and use it in GitHub Desktop.
SELECT col1, col2, col3=COUNT(*)
INTO HOLDKEY
FROM Table1
GROUP BY col1, col2
HAVING COUNT(*)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment