728x90
반응형
SELECT uid
FROM attend
WHERE dt BETWEEN '2017-11-01' AND '2017-11-10'
GROUP BY uid
HAVING COUNT(*) = DATEDIFF('2017-11-10', '2017-11-01') + 1
;
728x90
반응형
SELECT uid
FROM attend
WHERE dt BETWEEN '2017-11-01' AND '2017-11-10'
GROUP BY uid
HAVING COUNT(*) = DATEDIFF('2017-11-10', '2017-11-01') + 1
;