Quote:
Originally posted by prodadmin
thank you guys for the help.
Sameer..the query you provided works fine for a day but if i give a date range more than a day it's not working.
Let's say the student logged in twice for today( 2 hours) and he logged in next day for 3 times( 2 hours) .which is 4 hours total for the 2 days but the query results a big number.
For this requirement I guess you need one more column which stores the counter for the number of loggings per student per day. In the following example, on 23rd student 202051 has logged in twice, first at 15:56 Hrs and second at 17:56