I have this query that selects the number of user signups in the past 30 days:
SELECT
COUNT(*) AS UserCount30
FROM
User
WHERE
User.UserDateCreated > (CURDATE() - INTERVAL 30 DAY)
Then I have this query that selects the number of users that signed up in the past 7 days
SELECT
COUNT(*) AS UserCount7
FROM
User
WHERE
User.UserDateCreated > (CURDATE() - INTERVAL 7 DAY)
Ideally, these are all going to be part of one larger query. How could I get both of these values in one efficient query that preferably does not use subqueries.