I have this query that i'm using to pull all the user accounts that login for a given day
SELECT DISTINCT
users_logins.user_id,
users.first_name,
users.last_name,
users.email,
CONVERT_TZ(users_logins.login_time,'+00:00','-07:00') AS 'LoginTime'
FROM users
LEFT OUTER JOIN users_logins
ON users.id = users_logins.user_id
WHERE
CONVERT_TZ(users_logins.login_time,'+00:00','-07:00')
BETWEEN '2021-09-13 00:00:00'
AND '2021-09-13 23:59:00' AND
users.third_party = '0'
GROUP BY 1
ORDER BY login_time ASC
And this gives me list of distinct users who login at least 1 time a day, what i want to do in one sql if possible is have this give me same daily output for 1 month. So list all the users for say Aug 1 , 2, 3 - Aug 31, in one output. Im sure the SQL experts here know simple way to do it :) Thanks for any help