Solved Sickness Query (1 Viewer)

Eureka99

New member
Local time
Today, 14:25
Joined
Jun 29, 2020
Messages
26
Hi All,

I've been tasked with reporting on the Holiday / Sickness within my company.

I have a quick question.

I have a calendar with all dates for x years.

The sickness data I have is just a start and end date. I need to break this down into how many days per month.

With a query, how would I set it to amend all days between the start and end date as off sick.

This would be data imported from an Excel sheet.
 

ebs17

Well-known member
Local time
Today, 15:25
Joined
Feb 7, 2020
Messages
1,946
Like this
SQL:
SELECT
   D.Person_ID,
   C.calDay
FROM
   tblData AS D,
   tblCalendar AS C
WHERE
   C.calDay BETWEEN D.DateStart
      AND
   D.DateEnd
 

Eureka99

New member
Local time
Today, 14:25
Joined
Jun 29, 2020
Messages
26
Many Thanks
 

Users who are viewing this thread

Top Bottom