ソースコード
select
PF_CODE as 都道府県コード,
PF_NAME as 都道府県名,
(select TOTAL_AMT from POPU_TRANSITION where SURVEY_YEAR = 2015 and POPU_TRANSITION.PF_CODE = PREFECTURE.PF_CODE) as '総人口2015年',
(select TOTAL_AMT from POPU_TRANSITION where SURVEY_YEAR = 2020 and POPU_TRANSITION.PF_CODE = PREFECTURE.PF_CODE) as '総人口2020年',
ROUND((select TOTAL_AMT from POPU_TRANSITION where SURVEY_YEAR = 2020 and POPU_TRANSITION.PF_CODE = PREFECTURE.PF_CODE) * 100.0 / (select TOTAL_AMT from POPU_TRANSITION where SURVEY_YEAR = 2015 and POPU_TRANSITION.PF_CODE = PREFECTURE.PF_CODE)) as 人口増加率
from PREFECTURE
where (select TOTAL_AMT from POPU_TRANSITION where SURVEY_YEAR = 2020 and POPU_TRANSITION.PF_CODE = PREFECTURE.PF_CODE) > (select TOTAL_AMT from POPU_TRANSITION where SURVEY_YEAR = 2015 and POPU_TRANSITION.PF_CODE = PREFECTURE.PF_CODE)
order by 人口増加率 desc, PF_CODE asc;
提出情報
提出日時2022/07/20 21:26:51
コンテスト練習用コンテスト
問題人口増加率分析
受験者kobae964
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量102 MB
メッセージ
テストケース(通過数/総数)
2/2
状態
メモリ使用量
データパターン1
AC
44 MB
データパターン2
AC
102 MB