Skip to content

Instantly share code, notes, and snippets.

@ksakae1216
Created February 15, 2018 13:36
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 ksakae1216/8a2d2aa01bad6e629007da9302cc6520 to your computer and use it in GitHub Desktop.
Save ksakae1216/8a2d2aa01bad6e629007da9302cc6520 to your computer and use it in GitHub Desktop.
SELECT
COUNT(*) AS CNT
FROM (
SELECT
COL1
FROM
TEST_TBL
WHERE
COL1 = 'AAA'
AND
COL2 = 'BBB'
GROUP BY
COL1
) A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment