Skip to content

Instantly share code, notes, and snippets.

@MarkyC
Created March 24, 2013 17:31
Show Gist options
  • Select an option

  • Save MarkyC/5232744 to your computer and use it in GitHub Desktop.

Select an option

Save MarkyC/5232744 to your computer and use it in GitHub Desktop.
WITH #members AS (
SELECT DISTINCT count(*) as num
FROM yrb_club C, yrb_member M
WHERE C.club = M.club
)
SELECT
C.club,
count(M.num)
FROM
yrb_club C,
#members M
GROUP BY
C.club;
ERROR:
The statement does not include a required column list.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment