Created
December 4, 2014 20:20
-
-
Save danny8376/c74096b5b0feabc0b002 to your computer and use it in GitHub Desktop.
This file contains 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
-- SQLFiddle : http://sqlfiddle.com/#!2/f0e3bd/4 | |
-- SQLを書こう! | |
SELECT d.division_name, count(*) | |
FROM division AS d LEFT JOIN member AS m | |
ON d.division_id = m.division_id | |
GROUP BY d.division_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment