ソースコード
with p2015 as (
    select PF_CODE as "pfc",
            cast(TOTAL_AMT as real) as "ta2015"
    from POPU_TRANSITION
    where SURVEY_YEAR = 2015
    ),
    p2020 as (
    select PF_CODE as "pfc",
            cast(TOTAL_AMT as real) as "ta2020"
    from POPU_TRANSITION
    where SURVEY_YEAR = 2020
    )
    
select pfc as "都道府県コード",
        PF_NAME as "都道府県名",
        ta2015 as "総人口2015年",
        ta2020 as "総人口2020年",
        round(ta2020 * 100 / ta2015 ,0) as "人口増加率"
from p2015
    inner join
    p2020
    using(pfc)
    inner join
    PREFECTURE p
    ON pfc = p.PF_CODE
order by 5 desc, 1 asc
;
提出情報
提出日時2022/12/01 19:29:06
コンテスト練習用コンテスト
問題人口増加率分析
受験者keisuke_nakata
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量78 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
78 MB
データパターン2
WA
78 MB