日期:2014-05-16 浏览次数:20840 次
select etimattendancelistid, max(case when etimkaoqinfanwei='上午上班' then etimkaoqinzhuangtai end) as '上午上班', max(case when etimkaoqinfanwei='上午上班' then etimkaoqinzhuangtai end) as '下午上班' From kaoqin group by etimattendancelistid
select etimattendancelistid, max(case when etimkaoqinfanwei='上午上班' then etimkaoqinzhuangtai end) as '上午上班', max(case when etimkaoqinfanwei='上午上班' then etimkaoqinzhuangtai end) as '下午上班' From kaoqin order by etimattendancelistid