i have a datestamp field in my table structure.
using sql, i want to find any user who registered in yesterdays date using these time range.
eg:
2010-02-06 14:00:00
2010-02-07 10:00:00
i will be running this query once a day to grab users.
so tomorrow will be:
2010-02-07 14:00:00
2010-02-08 10:00:00
the day after tomorrow will be:
2010-02-08 14:00:00
2010-02-09 10:00:00
etc, etc.
select distinct * from users where loggedTime…
not sure how to query the date range? any ideas thanks
SQL Server
MySQL