2012 年夏季运动会的名单,每个运动的名称和该运动的项目数量?
这就是我得到的,但它返回了一个模棱两可的答案。我究竟做错了什么?请帮忙..
SELECT
sport_name as "Sport Name",
COUNT(discipline_code) as "Number of Disciplines"
FROM
GAMES.SPORT,
GAMES.GAMESDISCIPLINE,
GAMES.SUMMERGAMES
WHERE
sg_year = 2012
GROUP BY
sport_name;