LloydDobler
Technical User
Hope someone can help out with this one. We are trying to calculate days lost, and it works with the code below, however we don't want weekends to be included in the calcualtion. Is this possible?
USE HRDATABASE
SELECT DATEDIFF(day, injurydate, returntoworkdate) AS no_of_days_lost
FROM accidenttable
USE HRDATABASE
SELECT DATEDIFF(day, injurydate, returntoworkdate) AS no_of_days_lost
FROM accidenttable