[一]行转列 1,查询原始的数据 /***这次练习的主题,行转列,列转行***/select * from Scores 2,得到姓名,通过group by select Student as '姓名'from Scoresgroup by Studentorder by Student 3,再加上max, case……when select Student as '姓名',max(case Subject when '语文' then Score else 0 end) as '语文' ,--…