Created
March 24, 2013 17:31
-
-
Save MarkyC/5232744 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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