1
SELECT COUNT(title) AS SH
FROM movies
where genre = 'SH';

SELECT COUNT(title) AS CH
FROM movies
where genre = 'CH';

SELECT COUNT(title) AS ADV
FROM movies
where genre = 'ADV';

SELECT COUNT(title) AS COM
FROM movies
where genre = 'COM';

SELECT COUNT(title) AS DR
FROM movies
where genre = 'DR';

SELECT COUNT(title) AS SF
FROM movies
where genre = 'SF'
4

2 に答える 2

2
SELECT count(*), genre
FROM movies
GROUP BY genre;
于 2012-10-05T02:54:18.250 に答える
1

こういう意味ですか?

SELECT genre、COUNT(title)FROM movies GROUP BY genre

于 2012-10-05T02:52:36.270 に答える