<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: SQL SERVER &#8211; UDF &#8211; Function to Get Previous And Next Work Day &#8211; Exclude Saturday and Sunday</title>
	<atom:link href="http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/</link>
	<description>Notes of a SQL Server MVP and Database Administrator</description>
	<lastBuildDate>Sat, 21 Nov 2009 05:54:09 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: robert</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-52454</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Wed, 27 May 2009 03:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-52454</guid>
		<description>how can i get the balance which the only given is the breakdown of payments, transaction amount and transaction date and i will use the transaction date as parameters.

for example(table form): this shoul be the output:

customer----trans_amt----payments---trans_date----balance
robert--------200--------------10----------1-1-09----------190
robert--------200--------------50----------1-5-09----------140
robert--------200--------------60----------1-7-09----------80

i want to get balance for every trans_date

please help me
thanks

robert</description>
		<content:encoded><![CDATA[<p>how can i get the balance which the only given is the breakdown of payments, transaction amount and transaction date and i will use the transaction date as parameters.</p>
<p>for example(table form): this shoul be the output:</p>
<p>customer&#8212;-trans_amt&#8212;-payments&#8212;trans_date&#8212;-balance<br />
robert&#8212;&#8212;&#8211;200&#8212;&#8212;&#8212;&#8212;&#8211;10&#8212;&#8212;&#8212;-1-1-09&#8212;&#8212;&#8212;-190<br />
robert&#8212;&#8212;&#8211;200&#8212;&#8212;&#8212;&#8212;&#8211;50&#8212;&#8212;&#8212;-1-5-09&#8212;&#8212;&#8212;-140<br />
robert&#8212;&#8212;&#8211;200&#8212;&#8212;&#8212;&#8212;&#8211;60&#8212;&#8212;&#8212;-1-7-09&#8212;&#8212;&#8212;-80</p>
<p>i want to get balance for every trans_date</p>
<p>please help me<br />
thanks</p>
<p>robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: robert</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-52453</link>
		<dc:creator>robert</dc:creator>
		<pubDate>Wed, 27 May 2009 03:50:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-52453</guid>
		<description>how can i get the balance which the only given is the breakdown of payments, transaction amount and transaction date and i will use the transaction date as parameters.

for example(table form): this shoul be the output:

customer     trans_amt      payments        trans_date   balance
robert             200                  10                 1-1-09          190
robert             200                  50                 1-5-09          140
robert             200                  60                 1-7-09            80

i want to get balance for every trans_date

please help me
thanks

robert</description>
		<content:encoded><![CDATA[<p>how can i get the balance which the only given is the breakdown of payments, transaction amount and transaction date and i will use the transaction date as parameters.</p>
<p>for example(table form): this shoul be the output:</p>
<p>customer     trans_amt      payments        trans_date   balance<br />
robert             200                  10                 1-1-09          190<br />
robert             200                  50                 1-5-09          140<br />
robert             200                  60                 1-7-09            80</p>
<p>i want to get balance for every trans_date</p>
<p>please help me<br />
thanks</p>
<p>robert</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-48924</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 13 Mar 2009 16:16:56 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-48924</guid>
		<description>select DATEDIFF ( day , &#039;02/13/2009&#039; , &#039;02/12/2009&#039; )
select DATEDIFF ( hour , &#039;02/13/2009&#039; , &#039;02/12/2009&#039; )</description>
		<content:encoded><![CDATA[<p>select DATEDIFF ( day , &#8216;02/13/2009&#8242; , &#8216;02/12/2009&#8242; )<br />
select DATEDIFF ( hour , &#8216;02/13/2009&#8242; , &#8216;02/12/2009&#8242; )</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: George</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-48923</link>
		<dc:creator>George</dc:creator>
		<pubDate>Fri, 13 Mar 2009 16:11:42 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-48923</guid>
		<description>Simple and good...!!!

Works well for me...</description>
		<content:encoded><![CDATA[<p>Simple and good&#8230;!!!</p>
<p>Works well for me&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-47233</link>
		<dc:creator>SQLAuthority News - Best Articles on SQLAuthority.com Journey to SQL Authority with Pinal Dave</dc:creator>
		<pubDate>Tue, 24 Feb 2009 12:09:58 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-47233</guid>
		<description>[...] SQL SERVER - UDF - Function to Get Previous And Next Work Day - Exclude Saturday and Sunday [...]</description>
		<content:encoded><![CDATA[<p>[...] SQL SERVER &#8211; UDF &#8211; Function to Get Previous And Next Work Day &#8211; Exclude Saturday and Sunday [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rajesh</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-47168</link>
		<dc:creator>Rajesh</dc:creator>
		<pubDate>Tue, 24 Feb 2009 10:16:21 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-47168</guid>
		<description>hi Pianl,

  I need a help from u.

I am having a field name issueDate datatype as smalldatetime.
I need this field and also the previous date 

ex:  Item id             ItemName      IssueDate
         1023                 XXXX           12/02/2009
         1023                 XXXX           13/02/2009


I need the answer is diff between the 13/02/2009(LastDate)  - 12/02/2009(previous date)</description>
		<content:encoded><![CDATA[<p>hi Pianl,</p>
<p>  I need a help from u.</p>
<p>I am having a field name issueDate datatype as smalldatetime.<br />
I need this field and also the previous date </p>
<p>ex:  Item id             ItemName      IssueDate<br />
         1023                 XXXX           12/02/2009<br />
         1023                 XXXX           13/02/2009</p>
<p>I need the answer is diff between the 13/02/2009(LastDate)  &#8211; 12/02/2009(previous date)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony SMith</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-44310</link>
		<dc:creator>Anthony SMith</dc:creator>
		<pubDate>Thu, 20 Nov 2008 14:51:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-44310</guid>
		<description>This is a great function and I really like how this function works . Is there any way to account for Holidays? I have seen something where one could enter Holidays in a table (eg - tblHolidays --&gt;brilliant naming huh?). When the workday falls on the date in the table, the function would then go onto the next working day.

How would I modify this Function to do this?</description>
		<content:encoded><![CDATA[<p>This is a great function and I really like how this function works . Is there any way to account for Holidays? I have seen something where one could enter Holidays in a table (eg &#8211; tblHolidays &#8211;&gt;brilliant naming huh?). When the workday falls on the date in the table, the function would then go onto the next working day.</p>
<p>How would I modify this Function to do this?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Imran Mohammed</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-40396</link>
		<dc:creator>Imran Mohammed</dc:creator>
		<pubDate>Thu, 17 Jul 2008 20:38:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-40396</guid>
		<description>@RAHUL

You mean this ??

select datename(dd,getdate()+8)
Result: 25

select datename (dw,getdate() +8)
Result : Friday --(if today is July 17, Thursday)</description>
		<content:encoded><![CDATA[<p>@RAHUL</p>
<p>You mean this ??</p>
<p>select datename(dd,getdate()+8)<br />
Result: 25</p>
<p>select datename (dw,getdate() +8)<br />
Result : Friday &#8211;(if today is July 17, Thursday)</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Rahul</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-40379</link>
		<dc:creator>Rahul</dc:creator>
		<pubDate>Thu, 17 Jul 2008 13:15:09 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-40379</guid>
		<description>Hi,

I am looking for a function through which I can calculate a particular working day. let say I want to know the 8th working day from todays date.

Any help??? its urgent..

Thanks in advance.

Rahul</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I am looking for a function through which I can calculate a particular working day. let say I want to know the 8th working day from todays date.</p>
<p>Any help??? its urgent..</p>
<p>Thanks in advance.</p>
<p>Rahul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ying</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-34036</link>
		<dc:creator>Ying</dc:creator>
		<pubDate>Wed, 27 Feb 2008 21:03:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-34036</guid>
		<description>I am a newbie in SQL
I am trying to structure a query wherein 
I need to display data where the Qtrly end dates(3/31,6/30/9/30/12/31) have been moved for vendors.
also The Table has multiple records for the same vedor ending in 3/31 and I need to take a max

When I tried using date diff between Quarters for different Years it does not work.. any help here is appreciated</description>
		<content:encoded><![CDATA[<p>I am a newbie in SQL<br />
I am trying to structure a query wherein<br />
I need to display data where the Qtrly end dates(3/31,6/30/9/30/12/31) have been moved for vendors.<br />
also The Table has multiple records for the same vedor ending in 3/31 and I need to take a max</p>
<p>When I tried using date diff between Quarters for different Years it does not work.. any help here is appreciated</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Naomi</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-33660</link>
		<dc:creator>Naomi</dc:creator>
		<pubDate>Mon, 11 Feb 2008 08:10:57 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-33660</guid>
		<description>Try it:
select DATENAME(dw ,convert(datetime, substring(eventstartdttm, 0,9),3))
-- 3 for format dd/MM/yy

Good-Luck!</description>
		<content:encoded><![CDATA[<p>Try it:<br />
select DATENAME(dw ,convert(datetime, substring(eventstartdttm, 0,9),3))<br />
&#8211; 3 for format dd/MM/yy</p>
<p>Good-Luck!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chitra</title>
		<link>http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-33424</link>
		<dc:creator>Chitra</dc:creator>
		<pubDate>Fri, 01 Feb 2008 22:25:05 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/2007/07/23/sql-server-udf-function-to-get-previous-and-next-work-day-exclude-saturday-and-sunday/#comment-33424</guid>
		<description>Hi Pianl,
   Hello, how are you? I need help with a sql query that I am trying to write. I am trying to convert a date into a day in a query where a field called  eventstartdttm is a varchar field that holds date and time

for example if substring(eventstartdttm, 0,9) returns 30th Jan 2008 then I need it to say Wednesday. Is there a function that can help me do that? Thanks

Warm Regards,
Chitra</description>
		<content:encoded><![CDATA[<p>Hi Pianl,<br />
   Hello, how are you? I need help with a sql query that I am trying to write. I am trying to convert a date into a day in a query where a field called  eventstartdttm is a varchar field that holds date and time</p>
<p>for example if substring(eventstartdttm, 0,9) returns 30th Jan 2008 then I need it to say Wednesday. Is there a function that can help me do that? Thanks</p>
<p>Warm Regards,<br />
Chitra</p>
]]></content:encoded>
	</item>
</channel>
</rss>
