ソースコード
update total_scores as ts
set ranking = sub.ranking
from (select student_code, rank()  over(order by total_score desc) as ranking
    from total_scores) as sub
where ts.student_code = sub.student_code;
提出情報
提出日時2025/02/05 14:34:52
コンテストSQLの教科書確認用コンテスト4
問題分析関数の結果で更新1
受験者sn
状態 (詳細)AC
(Accepted: 正答)
メモリ使用量85 MB
メッセージ
テストケース(通過数/総数)
2/2
状態
メモリ使用量
データパターン1
AC
85 MB
データパターン2
AC
85 MB