I need to get a list of users email addresses that logged into my website over the course of a day.
The list may contain duplicate email addresses but not more than one per day.
I need to obtain this data for a week.
I have a table that contains records for each successful login as follows..
[ID], [LOGIN_EMAIL], [LOGIN_TIME]
The following query gets me the whole data set for the week but I need to filter it to one email address per day and get the entire list for the week?
SELECT LOGIN_EMAIL
FROM USER_LOGINS
WHERE LOGIN_TIME IS BETWEEN @STARTDATE AND @ENDDATE