Forum Moderators: open
I have the colum "entry_time" as a "datetime" format in my table...
can anyone provide a tip?
SELECT nhm_associate, COUNT(nhm_associate) AS totalcount FROM registration_table GROUP BY nhm_associate WHERE entry_time > DATE_SUB(CURDATE(), INTERVAL 14 DAY)
SELECT something FROM tbl_name WHERE DATE_SUB(CURDATE(),INTERVAL 30 DAY) <= date_col;
[dev.mysql.com...]