"SELECT FROM checkinout WHERE CHECKTIME BETWEEN '2012-01-01' and '2012-01-31'
and date_format(CHECKTIME,'%H:%i')<='08:00' and CHECKTYPE 'I' and count(USERID) form checkinout GROUP BY USERID ";
"SELECT count(USERID) FROM checkinout WHERE CHECKTIME BETWEEN '2012-01-01' and '2012-01-31'
and date_format(CHECKTIME,'%H:%i')<='08:00' and CHECKTYPE= 'I' GROUP BY USERID ";