ソースコード
with avv as(
SELECT

 avg(point) as average 
 from 
TEST_RESULTS where TEST_ID='100'
),
a as 
(select
 point - average as sa
 from TEST_RESULTS,avv where  TEST_ID='100'
),
bb as
(select sa*sa as sa from a),
 b as 
(
select 
 avg(sa) bunsan
from bb
) ,
c as (
select sqrt(bunsan) hensa from b
)

select
 USER_ID as USER,
  POINT as PT,
  round(10*(point - avv.average) / c.hensa + 50 , 1)as DEV_VAL
from 
TEST_RESULTS, avv, c
where TEST_ID='100'
order  by 3 desc,1 asc
提出情報
提出日時2023/02/18 22:12:52
コンテスト第5回 SQLコンテスト
問題偏差値の算出
受験者noneof383
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量78 MB
メッセージ
テストケース(通過数/総数)
3/4
状態
メモリ使用量
データパターン1
AC
78 MB
データパターン2
WA
75 MB
データパターン3
AC
77 MB
データパターン4
AC
76 MB