ソースコード
UPDATE total_scores
SET passed = CASE
WHEN total_score >= (select CAST(AVG(total_score) AS INT) from total_scores where test_code = 'T00001')
THEN 1
ELSE 0
END;

--select CAST(AVG(total_score) AS INT) from total_scores where test_code = 'T00001' GROUP BY test_code;

--select * from total_scores;
提出情報
提出日時2025/02/05 14:19:32
コンテストSQLの教科書確認用コンテスト4
問題副問合せの結果で絞り込み1
受験者sn
状態 (詳細)WA
(Wrong Answer: 誤答)
メモリ使用量86 MB
メッセージ
テストケース(通過数/総数)
0/2
状態
メモリ使用量
データパターン1
WA
85 MB
データパターン2
WA
86 MB