ソースコード
select 
    age_name as "年齢階層",
    (select sum(target_pop) * 1000 from sleep_time_dtl where age_code = a.age_code and time_code = 120) as "5時間未満",
    (select sum(target_pop) * 1000 from sleep_time_dtl where age_code = a.age_code and time_code = 130) as "5時間以上6時間未満",
    (select sum(target_pop) * 1000 from sleep_time_dtl where age_code = a.age_code and time_code = 140) as "6時間以上7時間未満",
    (select sum(target_pop) * 1000 from sleep_time_dtl where age_code = a.age_code and time_code = 150) as "7時間以上8時間未満",
    (select sum(target_pop) * 1000 from sleep_time_dtl where age_code = a.age_code and time_code = 160) as "8時間以上9時間未満",
    (select sum(target_pop) * 1000 from sleep_time_dtl where age_code = a.age_code and time_code = 170) as "9時間以上",
    (select sum(target_pop) * 1000 from sleep_time_dtl where age_code = a.age_code and time_code = 180) as "不詳"
from age_grp as a
order by age_code asc;
提出情報
提出日時2022/07/10 19:53:49
コンテスト練習用コンテスト
問題年齢別睡眠時間分析
受験者nitumeta339
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量89 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
78 MB
データパターン2
WA
89 MB