<?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; DATEDIFF &#8211; Accuracy of Various Dateparts</title>
	<atom:link href="http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/</link>
	<description>Personal Notes of Pinal Dave</description>
	<lastBuildDate>Fri, 17 May 2013 15:26:57 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
	<item>
		<title>By: techlearn</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-456599</link>
		<dc:creator><![CDATA[techlearn]]></dc:creator>
		<pubDate>Mon, 15 Apr 2013 14:51:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-456599</guid>
		<description><![CDATA[can you do something like this?
select datediff(minute, select date from xyz where A=4232, getdate()) as minutediff
I want to use date from database with where clause. is it possible?]]></description>
		<content:encoded><![CDATA[<p>can you do something like this?<br />
select datediff(minute, select date from xyz where A=4232, getdate()) as minutediff<br />
I want to use date from database with where clause. is it possible?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dogsh</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-448341</link>
		<dc:creator><![CDATA[Dogsh]]></dc:creator>
		<pubDate>Mon, 01 Apr 2013 18:10:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-448341</guid>
		<description><![CDATA[thanks for valuable explain. This is great !, 
İt is not a bug, but I agree with you that is is not useful.]]></description>
		<content:encoded><![CDATA[<p>thanks for valuable explain. This is great !,<br />
İt is not a bug, but I agree with you that is is not useful.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sraja</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-423251</link>
		<dc:creator><![CDATA[sraja]]></dc:creator>
		<pubDate>Mon, 18 Feb 2013 09:21:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-423251</guid>
		<description><![CDATA[hi i have also a problem with diffdate without week end, if you can help me:
i try to find days between two dates and it&#039;s give the right result wehn the dates are in same year, but when the date change the year it&#039;s go to wrong,
my code is:
convert (float,datediff(dd,departureDate, min(arrivalDate)) - (isnull((datepart(wk, min(arrivalDate)) - datepart(week,Event2024_actual))*2,0))) as arrivalhome

the result is]]></description>
		<content:encoded><![CDATA[<p>hi i have also a problem with diffdate without week end, if you can help me:<br />
i try to find days between two dates and it&#8217;s give the right result wehn the dates are in same year, but when the date change the year it&#8217;s go to wrong,<br />
my code is:<br />
convert (float,datediff(dd,departureDate, min(arrivalDate)) &#8211; (isnull((datepart(wk, min(arrivalDate)) &#8211; datepart(week,Event2024_actual))*2,0))) as arrivalhome</p>
<p>the result is</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veeresh</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-413676</link>
		<dc:creator><![CDATA[Veeresh]]></dc:creator>
		<pubDate>Sun, 27 Jan 2013 10:24:43 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-413676</guid>
		<description><![CDATA[Output will be like 2:30]]></description>
		<content:encoded><![CDATA[<p>Output will be like 2:30</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Veeresh</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-413674</link>
		<dc:creator><![CDATA[Veeresh]]></dc:creator>
		<pubDate>Sun, 27 Jan 2013 10:24:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-413674</guid>
		<description><![CDATA[How to convert hours into Minuates like if time is 2:30 like this]]></description>
		<content:encoded><![CDATA[<p>How to convert hours into Minuates like if time is 2:30 like this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: poonam</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-396501</link>
		<dc:creator><![CDATA[poonam]]></dc:creator>
		<pubDate>Thu, 20 Dec 2012 08:36:48 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-396501</guid>
		<description><![CDATA[I THINK IT IS A BUG]]></description>
		<content:encoded><![CDATA[<p>I THINK IT IS A BUG</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Suresh</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-370446</link>
		<dc:creator><![CDATA[Suresh]]></dc:creator>
		<pubDate>Tue, 06 Nov 2012 20:45:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-370446</guid>
		<description><![CDATA[Looks like it wrong results. Try to find out below sql statement exact difference in years, months and days. Below statement output results is 1 Year, 1 Month and 5 days. But I expected 0 years, 0 months and 5 days. Date scenario is 5th Jan 2013 to 31st Dec 2012

SELECT 
DATEDIFF(Year,&#039;2012-12-31&#039;,&#039;2013-01-05&#039;) AS YearDiff,
DATEDIFF(Month,&#039;2012-12-31&#039;,&#039;2013-01-05&#039;) AS MonthDiff,
DATEDIFF(Day,&#039;2012-12-31&#039;,&#039;2013-01-05&#039;) AS DayDiff]]></description>
		<content:encoded><![CDATA[<p>Looks like it wrong results. Try to find out below sql statement exact difference in years, months and days. Below statement output results is 1 Year, 1 Month and 5 days. But I expected 0 years, 0 months and 5 days. Date scenario is 5th Jan 2013 to 31st Dec 2012</p>
<p>SELECT<br />
DATEDIFF(Year,&#8217;2012-12-31&#8242;,&#8217;2013-01-05&#8242;) AS YearDiff,<br />
DATEDIFF(Month,&#8217;2012-12-31&#8242;,&#8217;2013-01-05&#8242;) AS MonthDiff,<br />
DATEDIFF(Day,&#8217;2012-12-31&#8242;,&#8217;2013-01-05&#8242;) AS DayDiff</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Sham Sunder</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-361927</link>
		<dc:creator><![CDATA[Sham Sunder]]></dc:creator>
		<pubDate>Fri, 19 Oct 2012 09:18:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-361927</guid>
		<description><![CDATA[I think there is a confusion, if you say that the expression only looks the minute part of two dates to get the difference.

Then how the below statement gives me 721 minutes. I have changed also given AM PM suffix. If it only check minute part then it should still give us result as 1 minute.

SELECT DATEDIFF(MINUTE,&#039;2011-10-14 02:18:58 AM&#039; , &#039;2011-10-14 02:19:01 PM&#039;) AS MIN_DIFF]]></description>
		<content:encoded><![CDATA[<p>I think there is a confusion, if you say that the expression only looks the minute part of two dates to get the difference.</p>
<p>Then how the below statement gives me 721 minutes. I have changed also given AM PM suffix. If it only check minute part then it should still give us result as 1 minute.</p>
<p>SELECT DATEDIFF(MINUTE,&#8217;2011-10-14 02:18:58 AM&#8217; , &#8217;2011-10-14 02:19:01 PM&#8217;) AS MIN_DIFF</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: joy</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-358543</link>
		<dc:creator><![CDATA[joy]]></dc:creator>
		<pubDate>Thu, 11 Oct 2012 00:01:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-358543</guid>
		<description><![CDATA[Hi...

I must be missing something... can someone shed some light on this please...

DateDiff(minute, 2012-10-10 08:00:00.000, 2012-10-10 10:30:00.000)

this returns 150. 

Should&#039;nt the answer be 30... if all i am looking is the difference in minutes of the minute part.

Thanks
Joy]]></description>
		<content:encoded><![CDATA[<p>Hi&#8230;</p>
<p>I must be missing something&#8230; can someone shed some light on this please&#8230;</p>
<p>DateDiff(minute, 2012-10-10 08:00:00.000, 2012-10-10 10:30:00.000)</p>
<p>this returns 150. </p>
<p>Should&#8217;nt the answer be 30&#8230; if all i am looking is the difference in minutes of the minute part.</p>
<p>Thanks<br />
Joy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Waqar-DBA</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-355507</link>
		<dc:creator><![CDATA[Waqar-DBA]]></dc:creator>
		<pubDate>Wed, 03 Oct 2012 13:58:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-355507</guid>
		<description><![CDATA[Hi Pinal,
i have one problem in database can you solve it ? the problem is this. if a product have today price 5 rupees and after 10 days increses 5 rupees mean in 15. how we can update or refresh the price of the product in the table which is uploaded before?]]></description>
		<content:encoded><![CDATA[<p>Hi Pinal,<br />
i have one problem in database can you solve it ? the problem is this. if a product have today price 5 rupees and after 10 days increses 5 rupees mean in 15. how we can update or refresh the price of the product in the table which is uploaded before?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Lijin</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-355476</link>
		<dc:creator><![CDATA[Lijin]]></dc:creator>
		<pubDate>Wed, 03 Oct 2012 12:21:39 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-355476</guid>
		<description><![CDATA[Hi,
I have two dates say fromdate = &#039;13/09/2012 5:57&#039; and todate= &#039;13/09/2012 11:00&#039;. My requirement is to get the difference like &#039;0 Day 5 Hour 3 Minutes&#039;. Can u please write a query for finding the difference like this.

Thanks,
Lijin Joy]]></description>
		<content:encoded><![CDATA[<p>Hi,<br />
I have two dates say fromdate = &#8217;13/09/2012 5:57&#8242; and todate= &#8217;13/09/2012 11:00&#8242;. My requirement is to get the difference like &#8217;0 Day 5 Hour 3 Minutes&#8217;. Can u please write a query for finding the difference like this.</p>
<p>Thanks,<br />
Lijin Joy</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: varun</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-315296</link>
		<dc:creator><![CDATA[varun]]></dc:creator>
		<pubDate>Wed, 18 Jul 2012 16:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-315296</guid>
		<description><![CDATA[hi, pls give me the query to write for this logic, if the records exists on yesterday file but not in current files then i need to insert those records into the respective table, pls give the solution with this]]></description>
		<content:encoded><![CDATA[<p>hi, pls give me the query to write for this logic, if the records exists on yesterday file but not in current files then i need to insert those records into the respective table, pls give the solution with this</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: anand</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-300398</link>
		<dc:creator><![CDATA[anand]]></dc:creator>
		<pubDate>Tue, 12 Jun 2012 13:09:37 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-300398</guid>
		<description><![CDATA[Hi pinal
I need a query which display date difference in hh:mm:ss in sql.If 2 days difference then it should convert days into hours]]></description>
		<content:encoded><![CDATA[<p>Hi pinal<br />
I need a query which display date difference in hh:mm:ss in sql.If 2 days difference then it should convert days into hours</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dewesh Pushkar</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-291351</link>
		<dc:creator><![CDATA[Dewesh Pushkar]]></dc:creator>
		<pubDate>Thu, 31 May 2012 04:02:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-291351</guid>
		<description><![CDATA[It was really very nice tutorial..................Thanks]]></description>
		<content:encoded><![CDATA[<p>It was really very nice tutorial&#8230;&#8230;&#8230;&#8230;&#8230;&#8230;Thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: madhivanan</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-287580</link>
		<dc:creator><![CDATA[madhivanan]]></dc:creator>
		<pubDate>Wed, 23 May 2012 11:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-287580</guid>
		<description><![CDATA[Difference in what aspect days, minutes, seconds,etc?]]></description>
		<content:encoded><![CDATA[<p>Difference in what aspect days, minutes, seconds,etc?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: mansom</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-282889</link>
		<dc:creator><![CDATA[mansom]]></dc:creator>
		<pubDate>Tue, 08 May 2012 09:10:32 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-282889</guid>
		<description><![CDATA[i want minutes difference between 2012-01-02 12:55:55.568 and 2012-01-03 10:12:56.698]]></description>
		<content:encoded><![CDATA[<p>i want minutes difference between 2012-01-02 12:55:55.568 and 2012-01-03 10:12:56.698</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sathish.s</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-274626</link>
		<dc:creator><![CDATA[sathish.s]]></dc:creator>
		<pubDate>Tue, 10 Apr 2012 06:54:55 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-274626</guid>
		<description><![CDATA[want to get hh:mm format]]></description>
		<content:encoded><![CDATA[<p>want to get hh:mm format</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugen</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-191544</link>
		<dc:creator><![CDATA[Eugen]]></dc:creator>
		<pubDate>Wed, 09 Nov 2011 11:50:02 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-191544</guid>
		<description><![CDATA[Though this approach won&#039;t work if you need to find difference in months or years due to different quantity of days in different months and years. I&#039;ve been waiting for some function which would work as it is expected since MS SQL 2000 but it hadn&#039;t appeared.
Actually everybody can replace this function by Year(a)-Year(b) and get the result. And everybody should write quite a complex and not very fast query to calculate a REAL difference in years or months.]]></description>
		<content:encoded><![CDATA[<p>Though this approach won&#8217;t work if you need to find difference in months or years due to different quantity of days in different months and years. I&#8217;ve been waiting for some function which would work as it is expected since MS SQL 2000 but it hadn&#8217;t appeared.<br />
Actually everybody can replace this function by Year(a)-Year(b) and get the result. And everybody should write quite a complex and not very fast query to calculate a REAL difference in years or months.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-181700</link>
		<dc:creator><![CDATA[Bruno]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 19:18:12 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-181700</guid>
		<description><![CDATA[You have 03:18:00 – 02:18:00, that’s a 60 minute difference.

The result from the query is correct. It only ignores the parts lower than minutes, not hours, days and years.]]></description>
		<content:encoded><![CDATA[<p>You have 03:18:00 – 02:18:00, that’s a 60 minute difference.</p>
<p>The result from the query is correct. It only ignores the parts lower than minutes, not hours, days and years.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Bruno</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-181699</link>
		<dc:creator><![CDATA[Bruno]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 19:17:28 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-181699</guid>
		<description><![CDATA[You have 03:18:00 - 02:18:58, that&#039;s a 60 minute difference.

The result from the query is correct. It only ignores the parts lower than minutes, not hours, days and years.]]></description>
		<content:encoded><![CDATA[<p>You have 03:18:00 &#8211; 02:18:58, that&#8217;s a 60 minute difference.</p>
<p>The result from the query is correct. It only ignores the parts lower than minutes, not hours, days and years.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Vinoth Kumar</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-181657</link>
		<dc:creator><![CDATA[Vinoth Kumar]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 16:29:38 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-181657</guid>
		<description><![CDATA[I just want to comment on below section

&quot;When you instruct SQL Server to find the time difference in minutes, it just looks at the minute section only and completely ignores hour, second, millisecond, etc. So in terms of difference in minutes, it is indeed 1.&quot;

SQL server will not exclude hours in the above case, it looks for minimum units(in this case everything above minutes will be considered like hours, days, year, etc but things that are less than minutes will not be considered like &#039;seconds, milliseconds,etc&#039;)


In the below query there is no change in minutes but i have changed hours

SELECT DATEDIFF(MI,&#039;2011-10-14 02:18:58&#039; , &#039;2011-10-14 03:18:00&#039;) AS MIN_DIFF

Result i got is 60

For the below query the result will be &quot;0&quot; as we don&#039;t have a minimum difference of 1 second 


SELECT DATEDIFF(MI,&#039;2011-10-14 02:18:58&#039; , &#039;2011-10-14 02:18:59&#039;) AS MIN_DIFF]]></description>
		<content:encoded><![CDATA[<p>I just want to comment on below section</p>
<p>&#8220;When you instruct SQL Server to find the time difference in minutes, it just looks at the minute section only and completely ignores hour, second, millisecond, etc. So in terms of difference in minutes, it is indeed 1.&#8221;</p>
<p>SQL server will not exclude hours in the above case, it looks for minimum units(in this case everything above minutes will be considered like hours, days, year, etc but things that are less than minutes will not be considered like &#8216;seconds, milliseconds,etc&#8217;)</p>
<p>In the below query there is no change in minutes but i have changed hours</p>
<p>SELECT DATEDIFF(MI,&#8217;2011-10-14 02:18:58&#8242; , &#8217;2011-10-14 03:18:00&#8242;) AS MIN_DIFF</p>
<p>Result i got is 60</p>
<p>For the below query the result will be &#8220;0&#8243; as we don&#8217;t have a minimum difference of 1 second </p>
<p>SELECT DATEDIFF(MI,&#8217;2011-10-14 02:18:58&#8242; , &#8217;2011-10-14 02:18:59&#8242;) AS MIN_DIFF</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Varinder Sandhu</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-181449</link>
		<dc:creator><![CDATA[Varinder Sandhu]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 06:12:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-181449</guid>
		<description><![CDATA[Really Nice Explanation ....

Thanks for sharing.]]></description>
		<content:encoded><![CDATA[<p>Really Nice Explanation &#8230;.</p>
<p>Thanks for sharing.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Shyam</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-181434</link>
		<dc:creator><![CDATA[Shyam]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 05:31:44 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-181434</guid>
		<description><![CDATA[Interesting and good one.]]></description>
		<content:encoded><![CDATA[<p>Interesting and good one.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Pankaj Nikam</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-181386</link>
		<dc:creator><![CDATA[Pankaj Nikam]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 03:05:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-181386</guid>
		<description><![CDATA[Awesome read! It was a really good... Never knew this thing about datediff.
Thanks for such informative post.]]></description>
		<content:encoded><![CDATA[<p>Awesome read! It was a really good&#8230; Never knew this thing about datediff.<br />
Thanks for such informative post.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason</title>
		<link>http://blog.sqlauthority.com/2011/10/21/sql-server-datediff-accuracy-of-various-dateparts/#comment-181368</link>
		<dc:creator><![CDATA[Jason]]></dc:creator>
		<pubDate>Fri, 21 Oct 2011 01:44:46 +0000</pubDate>
		<guid isPermaLink="false">http://blog.sqlauthority.com/?p=15110#comment-181368</guid>
		<description><![CDATA[These types of posts make me miss Oracle&#039;s TO_DATE and TO_CHAR functions.  I was just working through this the other day with hours, I wanted to check the last backup of a database, and find all that had been longer than one hour... but I wanted something like 1:05AM and 2:00AM to be included in the hour interval.  It took me a few minutes longer than it should have to code it up.]]></description>
		<content:encoded><![CDATA[<p>These types of posts make me miss Oracle&#8217;s TO_DATE and TO_CHAR functions.  I was just working through this the other day with hours, I wanted to check the last backup of a database, and find all that had been longer than one hour&#8230; but I wanted something like 1:05AM and 2:00AM to be included in the hour interval.  It took me a few minutes longer than it should have to code it up.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
