标签: mysql sql
我想在这里使用日期条件
SELECT COALESCE(SUM(IF(a=1 OR b=0 OR c=1 OR d=0 AND date BETWEEN '1336544083' AND '1336544081' 1, 0)),0) AS AC FROM tbl_people WHERE `Id` = '2'
这种方法是否正确?。