﻿<?xml version='1.0' encoding='UTF-8'?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/"><channel><title>SQLServerCentral / Article Discussions / Article Discussions by Author / Discuss content posted by Cliff Corder  / 4-4-5 Calendar Functions, Part 2 / Latest Posts</title><generator>InstantForum.NET v2.9.0</generator><description>SQLServerCentral</description><link>http://www.sqlservercentral.com/Forums/</link><webMaster>notifications@sqlservercentral.com</webMaster><lastBuildDate>Thu, 20 Jun 2013 02:11:16 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: 4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>A table is preferrable for performance reasons.   I used a table function because i can pass in what factory location since each of our sites has a different calendar of workdays and holidays;  and of course i had to revised it during development several times because the "requirements" kept changing.</description><pubDate>Thu, 15 Jul 2010 10:20:34 GMT</pubDate><dc:creator>ron.carlton 41182</dc:creator></item><item><title>RE: 4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>Using a table is preferable. You'll see better performance out of queries. Something interesting that came up during the comments on Part 1 of the article is performance issues with Date comparisons, especially the BETWEEN operator, and possible ways to increase performance. You might want to check that out.</description><pubDate>Mon, 08 Feb 2010 07:35:37 GMT</pubDate><dc:creator>corder</dc:creator></item><item><title>RE: 4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>Thanks for the article.  I'm actually working on fiscal based periods at the moment, and have opted to have all of the periods defined in a setup-type table.E.g.Period # | Fiscal Year # | Quarter # | Start Date | End DateThat way, the end-user is responsible to define the fiscal year, and no calculations are required.Your thoughts?</description><pubDate>Sun, 07 Feb 2010 21:01:58 GMT</pubDate><dc:creator>ajhuddy</dc:creator></item><item><title>RE: 4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>Thanks for the comments. It somehow slipped past me that the article was published already. Any other comments are much appreciated.Cliff</description><pubDate>Wed, 13 Jan 2010 07:11:41 GMT</pubDate><dc:creator>corder</dc:creator></item><item><title>RE: 4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>Thanks for taking the time to put together this article.</description><pubDate>Mon, 11 Jan 2010 11:46:06 GMT</pubDate><dc:creator>SQLRNNR</dc:creator></item><item><title>RE: 4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>Every time I read these articles about 4-4-5 my head hurts... and I vow again and again to make sure to not take a job with a company that follows this practice :)</description><pubDate>Mon, 11 Jan 2010 07:16:19 GMT</pubDate><dc:creator>mtassin</dc:creator></item><item><title>RE: 4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>Thanks for nice article.Also function which returns the Weeks is more usefull for retail programs and like-for-like discussions.As you now sql server's DATEPART weeknumber function does not return the real Week number according to the 4-5-4 calendar...For example if your week starts with Monday. 01/01/2010 Friday02/01/2010 Saturday03/01/2010 Sunday04/01/2010 MondaySql Server returns 1 for weeknumber of 01/01/2010 but it is the 53th week of 2009. Sql Server returns 2 for weeknumber of 04/01/2010 but it is the 1st week of 2010. So the new function should return 2009W53 2010W01anyway thanks again ;)</description><pubDate>Mon, 11 Jan 2010 06:41:41 GMT</pubDate><dc:creator>Cem Uney</dc:creator></item><item><title>4-4-5 Calendar Functions, Part 2</title><link>http://www.sqlservercentral.com/Forums/Topic845163-1660-1.aspx</link><description>Comments posted to this topic are about the item [B]&lt;A HREF="/articles/function/68323/"&gt;4-4-5 Calendar Functions, Part 2&lt;/A&gt;[/B]</description><pubDate>Sun, 10 Jan 2010 21:04:24 GMT</pubDate><dc:creator>corder</dc:creator></item></channel></rss>