ソースコード
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
where ta2015 < ta2020
order by 5 desc, 1 asc
;
提出情報
提出日時2022/12/01 19:39:12
コンテスト練習用コンテスト
問題人口増加率分析
受験者keisuke_nakata
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量80 MB
メッセージ
テストケース(通過数/総数)
2/2
状態
メモリ使用量
データパターン1
AC
80 MB
データパターン2
AC
78 MB