I need to get sum of days. The sum should be a number.
For summing should be taken only unique dates.
In below table there are 3 records for userid 1.
I need to get result equal 2 because he worked 2 days, 04.06.2018 and 05.06.2018.
UserID Date
1 04.06.2018 10:45:11
1 04.06.2018 17:15:11
1 05.06.2018 09:15:33
Desired result is:
UserID TotalDays
1 2
How to achive that? Thanks!