------解决方案--------------------
行转列 select name ,max(case when workday='2011-11-10' then status end) "10号" ,max(case when workday='2011-11-11' then status end) "11号" ,max(case when workday='2011-11-12' then status end) "12号" from tb group by name ;
------解决方案--------------------