I am using mysql and have a table (Log_Table) storing user login dates, a kind of logging table. I need to find out for how many days in a row a user is logged in or
I need to find out if the user is logged-in everyday in the past 10 days. The thing is that I need to find it in only one SQL select command.
The Log_Table has one user_id:int and one login_date:DATE field
I am using mysql and have a table (Log_Table) storing user login dates, a
Share
http://sqlfiddle.com/#!2/56437/7