Only count working days in a DATEDIFF (MySQL)
So, next problem :'), I have the following query that @MatBailie provided to me here (thanks again!): SELECT taskname, employee, SUM( DATEDIFF( LEAST( enddate, '2023-12-31'), GREATEST(startdate, '2023-01-01') ) +1 ) AS total_days, FROM schedule WHERE startDate <= '2023-12-31' AND endDate…