Hey.
I need help with a select statement. In my table "users" I have a last_login field, which type is date
I need to select all users who have logged in in the current month.
For instance, if user bob and user santa last_login value is between the 1st of a month and the last day of a month, select them?
I guess I will have to use a function to get the days in a particular month, but because the month number is in a field, it will be hard to extract.
Thanks for any help.
I need help with a select statement. In my table "users" I have a last_login field, which type is date
I need to select all users who have logged in in the current month.
For instance, if user bob and user santa last_login value is between the 1st of a month and the last day of a month, select them?
I guess I will have to use a function to get the days in a particular month, but because the month number is in a field, it will be hard to extract.
Thanks for any help.