Is there a SQL command that will exclude weekends when counting the number of days between 2 dates?
I am using the PeopleSoft query expression below to total the differences between two dates for employees. It has now been requested of me to exclude weekend days from the totals. What can I add to the expression to accomplish this?
SUM(%DATEDIFF(D.EFFDT,(CASE WHEN F.EFFDT IS NULL THEN A.EFFDT ELSE F.EFFDT END)))
PeopleSoft Image 19
PeopleTools 8.57.05
Oracle DB