ソースコード
select 
    TESTUSER_TBL.USER_ID as USER, 
    TESTUSER_TBL.POINT as PT, 
--    TESTUSER_TBL.AVGPOINT, 
--    STD_HENSA.STDHENSA, 
    ROUND((TESTUSER_TBL.DIVPOINT * 10 / STD_HENSA.STDHENSA) + 50.0, 1) as DEV_VAL
FROM (SELECT T2.USER_ID, T2.POINT, AVGTBL.AVGPOINT, (T2.POINT-AVGTBL.AVGPOINT) as DIVPOINT
                FROM TEST_RESULTS T2,
                     (SELECT AVGPOINT FROM (select AVG(POINT) as AVGPOINT from TEST_RESULTS where TEST_ID='100')) AVGTBL
               WHERE T2.TEST_ID='100'
     ) TESTUSER_TBL,
     (SELECT SQRT(AVG(BUNSAN)) as STDHENSA
        FROM (SELECT T1.USER_ID, T1.POINT, AVGTBL.AVGPOINT, T1.POINT-AVGTBL.AVGPOINT as DIVPOINT, (T1.POINT-AVGTBL.AVGPOINT)*(T1.POINT-AVGTBL.AVGPOINT) as BUNSAN
                FROM TEST_RESULTS T1,
                     (SELECT AVGPOINT FROM (select AVG(POINT) as AVGPOINT from TEST_RESULTS where TEST_ID='100')) AVGTBL
               WHERE T1.TEST_ID='100') BUNSAN_TBL
     ) STD_HENSA
order by DEV_VAL desc,
USER asc
;
提出情報
提出日時2023/06/21 13:43:13
コンテスト第5回 SQLコンテスト
問題偏差値の算出
受験者yamada_hi_roky
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量76 MB
メッセージ
テストケース(通過数/総数)
3/4
状態
メモリ使用量
データパターン1
AC
76 MB
データパターン2
WA
75 MB
データパターン3
AC
76 MB
データパターン4
AC
76 MB