I am trying to find the top 3 sick leavers per Site in my employee table. Im attempting to write a query to find the top sick leaver per site first.
Here is what I have but I can't seem to get it right Here's what I have
select Site.SiteName,
[FullName] where MAX([SickLeaveTaken])
from Employee
left join Site
on(Employee.SiteID=Site.SiteID)
GROUP BY Site.SiteName;
GO