June 12, 2009 at 9:57 am
Hello Everyone,
I am new to SQL Server 2000, I would like to know how to "determine the number of business days between two dates". (e.g. how to find the number of business days between the hiredates of two employees.)
Any help is greatly appreciated.
Thanks in advance!!
June 12, 2009 at 10:21 am
Hi,
I just used your question "determine the number of business days between two dates" and searched for exactly the same string on this site (search function on the upper right hand side).
Top 1 hit was http://www.sqlservercentral.com/articles/Advanced+Querying/businessdays/309/ which should exactly do what you'Re asking for.
June 12, 2009 at 3:16 pm
Thanks a lot!
June 12, 2009 at 9:06 pm
If all you want is to calculate week days, there's a very short function at the following article.
http://www.sqlservercentral.com/articles/Advanced+Querying/calculatingworkdays/1660/
If you want work days instead of week days, I suggest you Google for "Calendar Table".
--Jeff Moden
Change is inevitable... Change for the better is not.
Viewing 4 posts - 1 through 3 (of 3 total)
You must be logged in to reply to this topic. Login to reply