Hi @blackhills ,
For this type of problem we recommend that you post CREATE TABLE statements for your tables together with INSERT statements with sample data, enough to illustrate all angles of the problem. We also need to see the expected result of the sample.
You could also try with below update statement and check whether it is working.
update a
SET a.workday_flag=
case when (a.weekday_name in ('SATURDAY','SUNDAY') OR B.CORP_HOLIDAY_IND='Y') THEN 'FALSE' ELSE 'TRUE' END
from dim_date_new a
inner join "PROD"."CALENDAR_DEV"."CALENDAR_DATE_NEW" B
ON A.CALENDAR_DATE=B.CALENDAR_DATE
Best regards
Melissa
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.