I have a table 'OrderMast' in which two of the columns are date/time; StartDate and EndDate.
I am tasked to create a view 'vOrderMast' to include the StartDate and EndDate fields, and next to them an IsHoliday? field which returns 1 if a company holiday date falls on or between the StartDate and EndDate, and if not, returns 0). The list of company holiday dates is in another table 'Holidays'.
Please what is the code to accomplish this?