I have a simple SQL query that looks like this...
SELECT
COUNT (* )
AS
count
FROM
wlead
WHERE
f_id = '765'
This works great but I would now like to limit the query to just return results from the last 7 days. There is a field called date_created which is formatted like this...
2014-10-12 11:31:26
Is there an automatic way of limiting the results or do I need to work out the date 7 days previous first?