I want my query to only return records where 'hit_date' is less than or equal to 7 days old. The query as I currently have it, returns 0 records, even though it should be returning several, and it's not throwing an error.
Any ideas?
Here's the query:
Any ideas?
Here's the query:
Code:
SELECT a.site_id, b.url, b.company, b.city, b.state_province, b.site_desc
FROM track_sites_by_day a, track_site_info b
WHERE a.site_id = b.site_id
AND DateDiff(d, #dateformat(now(), 'MM/DD/YYYY')#, a.hit_date) <= 7