SQL语句:
select Name,
sum(case when Subject='语文' then Result end)as '语文',
sum(case when Subject='数学' then Result end)as '数学',
sum(case when Subject='物理' then Result end)as '物理'
from Student
group by Name
posted on 2010-08-19 22:59 程序帝 阅读(336) 评论(0) 收藏 举报
博客园 © 2004-2026 浙公网安备 33010602011771号 浙ICP备2021040463号-3