Tuesday, January 17, 2012

sql count

SELECT COUNT(DISTINCT date) FROM `attendence` WHERE name='Sazzad' and date>'2012-01-01' and date<='2012-01-15'