日期:2014-05-18 浏览次数:20395 次
select weekName,sumCount,deptID from weekList, (select sum(menCount) sumCount,weekID,s.deptID from shift s,shiftDetail sd where sd.shiftID = s.id and s.deptID = 3 group by weekID,s.deptID) b where weekList.weekID = b.weekID