コンテストの制限時間が終了しました。
以降も提出を行うことができますが、順位集計には反映されません。
以降も提出を行うことができますが、順位集計には反映されません。
ソースコード
select
SURVEY_YEAR as SV_YEAR
,PREFECTURE.PF_NAME
,test as AMT
from
(
select
SURVEY_YEAR
,PF_CODE
,1 as rank
,sum(cast(ELEMENTARY as REAL)) as test
from
ENROLLMENT_STATUS
where SURVEY_YEAR = 2020
group by PF_CODE
UNION
select
SURVEY_YEAR
,PF_CODE
,2 as rank
,sum(cast(MIDDLE as REAL)) as test
from
ENROLLMENT_STATUS
where SURVEY_YEAR = 2020
group by PF_CODE
UNION
select
SURVEY_YEAR
,PF_CODE
,3 as rank
,sum(cast(HIGH as REAL)) as test
from
ENROLLMENT_STATUS
where SURVEY_YEAR = 2020
group by PF_CODE
UNION
select
SURVEY_YEAR
,PF_CODE
,4 as rank
,sum(cast(JUNIOR_CLG as REAL)) as test
from
ENROLLMENT_STATUS
where SURVEY_YEAR = 2020
group by PF_CODE
UNION
select
SURVEY_YEAR
,PF_CODE
,5 as rank
,sum(cast(COLLEGE as REAL)) as test
from
ENROLLMENT_STATUS
where SURVEY_YEAR = 2020
group by PF_CODE
UNION
select
SURVEY_YEAR
,PF_CODE
,6 as rank
,sum(cast(GRADUATE as REAL)) as test
from
ENROLLMENT_STATUS
where SURVEY_YEAR = 2020
group by PF_CODE
) aaa inner join PREFECTURE on
aaa.PF_CODE = PREFECTURE.PF_CODE
where test is not null;
提出情報
提出日時 | 2022/09/21 19:15:21 |
コンテスト | 第2回 SQLコンテスト |
問題 | 就学状況の表示変換 |
受験者 | keita |
状態 (詳細) | WA (Wrong Answer: 誤答) |
メモリ使用量 | 105 MB |
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
105 MB
データパターン2
WA
105 MB