Hello,
Need some help with what is probably a pretty basic SQL query. I'm trying to select the number of unique records that match a specific where clause.
Essentially, I'm looking to find the number of unique users that logged in between date x and y. If a user logged in more than once between those dates, it would need to only count once.
The data looks something like this:
id | user_id | lastLogin
1 | 100 | 2010-06-23 10:00:00
2 | 101 | 2010-06-23 10:05:00
3 | 100 | 2010-06-23 11:00:00
Thanks!