ソースコード
select a.PF_CODE as "都道府県コード", PF_NAME as "都道府県名", AMT15 as "総人口2015年", AMT20 as "総人口2020年", round(cast(AMT20 as REAL)/cast(AMT15 as REAL)*100) as "人口増加率"
from (
    select *
    from (select PF_CODE, TOTAL_AMT as AMT15 from POPU_TRANSITION where SURVEY_YEAR = 2015) as a15
    join (select PF_CODE, TOTAL_AMT as AMT20 from POPU_TRANSITION where SURVEY_YEAR = 2020) as a20
    on a15.PF_CODE = a20.PF_CODE
    where AMT15 <= AMT20
    ) as a
join PREFECTURE p
on p.PF_CODE = a.PF_CODE
order by round(cast(AMT20 as REAL)/cast(AMT15 as REAL)*100) DESC, a.PF_CODE ASC
提出情報
提出日時2022/06/18 14:09:56
コンテスト練習用コンテスト
問題人口増加率分析
受験者yairo
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量77 MB
メッセージ
テストケース(通過数/総数)
2/2
状態
メモリ使用量
データパターン1
AC
76 MB
データパターン2
AC
77 MB