I am trying to filter an SQL database.
Each row represents a user, the main column I’m focusing on is titled last_visited and formatted as… 2009-06-17 12:15:32.
How many users have visited in the last day/week/month?
Like in:
SELECT COUNT(*) AS USERS_TODAY
FROM parts_users
Where updated_at > (NOW()-7)