--  Source: https://www.gov.uk/bank-holidays
--
--  England and Wales
--
update calendar
set public_holiday_england_and_wales = 'N'
where year = 2017;

update calendar
set public_holiday_england_and_wales = 'Y'
where 
    calendar_date in
    (
        '02-Jan-2017',  -- New Year's Day (substitute day)
        '14-Apr-2017',  -- Good Friday
        '17-Apr-2017',  -- Easter Monday
        '01-May-2017',  -- Early May Bank Holiday
        '29-May-2017',  -- Spring Bank Holiday
        '28-Aug-2017',  -- Summer Bank Holiday
        '25-Dec-2017',  -- Christmas Day
        '26-Dec-2017'   -- Boxing Day
    );
--
--
--  Scotland
--
update calendar
set public_holiday_scotland = 'N'
where year = 2017;

update calendar
set public_holiday_scotland = 'Y'
where 
    calendar_date in
    (
        '02-Jan-2017',  -- 2nd January
        '03-Jan-2017',  -- New Year's Day (substitute day)
        '14-Apr-2017',  -- Good Friday
        '01-May-2017',  -- Early May Bank Holiday
        '29-May-2017',  -- Spring Bank Holiday
        '07-Aug-2017',  -- Summer Bank Holiday
        '30-Nov-2017',  -- St Andrew's Day
        '25-Dec-2017',  -- Christmas Day
        '26-Dec-2017'   -- Boxing Day
    );
--
--
--  Northern Ireland 
--
update calendar
set public_holiday_northern_ireland = 'N'
where year = 2017;

update calendar
set public_holiday_northern_ireland = 'Y'
where 
    calendar_date in
    (
        '02-Jan-2017',  -- New Year's Day (substitute day)
        '17-Mar-2017',  -- St Patrick’s Day
        '14-Apr-2017',  -- Good Friday
        '17-Apr-2017',  -- Easter Monday
        '01-May-2017',  -- Early May Bank Holiday
        '29-May-2017',  -- Spring Bank Holiday
        '12-Jul-2017',  -- Battle of the Boyne (Orangemen’s Day)
        '28-Aug-2017',  -- Summer Bank Holiday
        '25-Dec-2017',  -- Christmas Day
        '26-Dec-2017'   -- Boxing Day
    );
