Calculating Business Days and Business Days Between
I recently had a requirement to populate the day dimension of a data mart (I won’t put all of the code here as it’s pretty large). That’s not that big deal but part of the requirement was to set several columns: BUSINESS_DAY_FLAG, BUSINESS_DAY_NO and BUSINESS_DAYS_REMAINING_NO.
- The BUSINESS_DAY_FLAG is Y is the date is MON-FRI and N is the date is SAT or SUN.
- BUSINESS_DAY_NO is the business day of the month. There are 5 business days per week so if the month started on a monday, the second monday would be business day 6.
- BUSINESS_DAYS_REMAINING_NO is the number of business days remaining in the month.
Click to continue reading “Calculating Business Days and Business Days Between”
Read the rest of this entry »


