I have got this data in the database about users spending time on a particular activity.
I intend to get the data when every user has spent the maximum number of hours.
Something like this:
Select Id, Name, HoursSpent, Date from HoursSpent
Where HoursSpent = (SELECT MAX(HoursSpent) FROM HoursSpent)
But it is only giving me rows for duplicate data with maximum hours, I would like to get the users as well who don't have duplicate data like Person2 and Person9 as well.

