
sql语句:
SELECT * into #t from ( select B.sid,A.name,b.score from student A,Score B
WHERE A.id=b.sid group by b.sid,a.name,b.score)k
select * from (
select DISTINCT M.name,SUM(score) over(order by sid) as TotalScore from #T as M
) A order by a.TotalScore desc
DROP TABLE #T
博客提及了SQL语句,但未给出更多详细信息。SQL语句在数据库操作中至关重要,可用于数据的查询、插入、更新和删除等操作。
842

被折叠的 条评论
为什么被折叠?



