select ID,TERM,score as china from cloud2012 where subject='china'
union all
select ID,TERM,score as math from cloud2012 where subject='math' 
union all
select ID,TERM,score as english from cloud2012 where subject='english'
  请问怎么行列合并,我想使用这种方法进行行列转换。
   在存储过程中如何写转换的SQL。