ソースコード
SELECT
    p.PF_CODE AS "都道府県コード",
    p.PF_NAME AS "都道府県名",
    (SELECT TOTAL_AMT FROM POPU_TRANSITION WHERE SURVEY_YEAR = "2015" AND PF_CODE = p.PF_CODE) AS "総人口2015年",
    (SELECT TOTAL_AMT FROM POPU_TRANSITION WHERE SURVEY_YEAR = "2020" AND PF_CODE = p.PF_CODE) AS "総人口2020年",
    ROUND(CAST((SELECT TOTAL_AMT FROM POPU_TRANSITION WHERE SURVEY_YEAR = "2015" AND PF_CODE = p.PF_CODE)AS FLOAT)/CAST((SELECT TOTAL_AMT FROM POPU_TRANSITION WHERE SURVEY_YEAR = "2020" AND PF_CODE = p.PF_CODE)AS FLOAT)*100)AS "人口増加率"
FROM
    PREFECTURE AS p
    JOIN POPU_TRANSITION AS pt ON p.PF_CODE = pt.PF_CODE
GROUP BY
    p.PF_CODE
ORDER BY
    "人口増加率" DESC,
    "都道府県コード" ASC;
提出情報
提出日時2024/09/01 00:31:18
コンテスト練習用コンテスト
問題人口増加率分析
受験者sakats
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量86 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
86 MB
データパターン2
WA
85 MB