date sql get the last week count code example
Example: date sql get the last week count
select * from dt_table where `date` >= DATE_SUB(CURDATE(), INTERVAL 7 DAY)
select * from dt_table where `date` >= DATE_SUB(CURDATE(), INTERVAL 7 DAY)