For more information, please refer to this announcement explaining best practices for getting answers to questions.
Onboarding Date (Monday after Hired Start Date
Summary
We are working on a onboarding program, and we need to notify the team of what date the inidvidual will be doing virtual onboarding based on when we input the Hire Start Date in the System.Content
Since not all hires start on a monday, we need to identify the next monday available after the Start date, or if they start on a monday that is the date of the onboarding.
I am attempting a Case When Day of Week Actual Start Date but my Timestampadd is causing a Reporting Error upon running the query.
Any thoughts??
CASE WHEN DAYOFWEEK("Submission Dates"."Offer Actual Start Date") = 1 THEN TIMESTAMPADD(SQL_TSI_DAY,1,"Submission Dates"."Offer Actual Start Date") WHEN DAYOFWEEK("Submission Dates"."Offer Actual Start Date") = 2 THEN "Submission Dates"."Offer Actual Start Date" WHEN DAYOFWEEK("Submission Dates"."Offer Actual Start Date") = 3 THEN TIMESTAMPADD(SQL_TSI_DAY,6,"Submission Dates"."Offer Actual Start Date") WHEN DAYOFWEEK("Submission Dates"."Offer Actual Start Date") = 4 THEN TIMESTAMPADD(SQL_TSI_DAY,5,"Submission Dates"."Offer Actual Start Date") WHEN DAYOFWEEK("Submission Dates"."Offer Actual Start Date") = 5 THEN TIMESTAMPADD(SQL_TSI_DAY,4,"Submission Dates"."Offer Actual Start Date") WHEN DAYOFWEEK("Submission Dates"."Offer Actual Start Date") = 6 THEN TIMESTAMPADD(SQL_TSI_DAY,3,"Submission Dates"."Offer Actual Start Date") WHEN DAYOFWEEK("Submission Dates"."Offer Actual Start Date") = 7 THEN TIMESTAMPADD(SQL_TSI_DAY,2,"Submission Dates"."Offer Actual Start Date") ELSE