How to count last login for each user per day.?
Table looks similar to this
id name Date
-----------------
1 a 01-Feb-2017
2 a 01-Feb-2017
3 a 01-Feb-2017
4 b 02-Feb-2017
5 b 02-Feb-2017
6 c 04-Feb-2017
7 c 04-Feb-2017
- All i want to do is put to_char(date,'dd-mm-yy-hh-mm-ss) to the date as my date do not have times in it.
- Fetch the latest login for user a on 1-feb-2017 , user b on 2-feb-2017 and user c on 4-feb-2017
- One user can login multiple times, so the dates are printed many times, but i want to show only last login date.
Kindly let me know please.....looks simple but i'm stuck