Navigation:  Enhanced Crewing > Crew Database Layout. > Some Linking Examples >

A Simple Accommodation Query

Previous pageReturn to chapter overviewNext page

 

On the Example – For the crew boss, accommodation is required the day before and day of the shift

_img114

 

And they have been allocated to a hotel Room 1234

_img115

The following QBE shows the links to return the information.

_img116

_img117

Since Accommodation is linked to shifts The Activity date is the shift date and the Accommodation Day is the offset from the shift

From the Enumerated types or table definition we can see

   AccommodationDay Byte NOT NULL DESCRIPTION 'TAccommodationDay = (adBeforeShift, adOnShift, adAfterShift)', where enumerated types start counting at 0

So in this instance the Actual dates are The day before the shift (0) and the day of the Shift (1)