Hi I am new to to inline table valued function can someone please help me with the code on how to calculate employee working hours using cross apply for table valued function based on the shift start and end is work day(Based on Calendar date table).It should be decimal(09:00 to 17:30) as 8.5 hours.
Other Scenarios of valid shift patterns are 08:00-16:00,09:00-17:00 and 08:00 - 20:00.No need to deduct any lunch breaks