SELECT DAY(updated_at), WEEK(updated_at), COUNT(*) AS visits FROM parts_development.page_views p WHERE updated_at >= DATE_SUB(NOW(),INTERVAL 1 year) GROUP BY DAY(updated_at), WEEK(updated_at) WITH ROLLUP
It will visit throughout the year, grouping them by day, week and total.
If you just want to select visits for the day, week and year in three columns, use this:
SELECT ( SELECT COUNT(*) FROM parts_development.page_views p WHERE updated_at >= DATE_SUB(NOW(),INTERVAL 1 DAY) ) AS last_day, ( SELECT COUNT(*) FROM parts_development.page_views p WHERE updated_at >= DATE_SUB(NOW(),INTERVAL 7 DAY) ) AS last_week, ( SELECT COUNT(*) FROM parts_development.page_views p WHERE updated_at >= DATE_SUB(NOW(),INTERVAL 1 YEAR) ) AS last_year
source share