<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>7deeds &#187; sql</title>
	<atom:link href="http://blog.7deeds.com/tag/sql/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.7deeds.com</link>
	<description>Petros Amiridis - A humble programmer's seven noteworthy actions for the community</description>
	<lastBuildDate>Mon, 31 May 2010 12:09:10 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Selecting only today&#8217;s records</title>
		<link>http://blog.7deeds.com/2007/06/19/selecting-only-todays-records/</link>
		<comments>http://blog.7deeds.com/2007/06/19/selecting-only-todays-records/#comments</comments>
		<pubDate>Mon, 18 Jun 2007 22:41:52 +0000</pubDate>
		<dc:creator>Petros</dc:creator>
				<category><![CDATA[tips]]></category>
		<category><![CDATA[sql]]></category>

		<guid isPermaLink="false">http://blog.7deeds.com/?p=8</guid>
		<description><![CDATA[My database background has been mostly related to Oracle. These days, I am working as a freelancer with a company that heavily uses SQL Server. As a result, I miss knowing stuff out of my mind without having to search.
Today, I wanted to select from a table only those records that where created today. This [...]]]></description>
			<content:encoded><![CDATA[<p>My database background has been mostly related to Oracle. These days, I am working as a freelancer with a company that heavily uses SQL Server. As a result, I miss knowing stuff out of my mind without having to search.</p>
<p>Today, I wanted to select from a table only those records that where created today. This table has a DateTime column that gets a default value from GetDate(). Here is how I did it:</p>
<p>select<br />
  *<br />
from<br />
  myTable<br />
where<br />
  DateDiff(DAY, MyDateColumn, GetDate()) = 0</p>
<p>Is there a better way?</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.7deeds.com/2007/06/19/selecting-only-todays-records/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
