日期:2014-05-16 浏览次数:20653 次
select t.usermobile, themeId, to_char(trunc(sysdate, 'iw'), 'yyyy-mm-dd') begintime, to_char(trunc(sysdate, 'iw') + 6, 'yyyy-mm-dd') endtime, count(distinct t.attenddate) countOfAttendance from user_attendance t where attenddate >= to_char(trunc(sysdate, 'iw'), 'yyyy-mm-dd') and attenddate <= to_char(sysdate, 'yyyy-mm-dd') group by usermobile, themeid;