﻿<?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 Divya  Agrawal  / Select query returns result beyond the range specified...? / 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>Wed, 22 May 2013 10:39:37 GMT</lastBuildDate><ttl>20</ttl><item><title>RE: Select query returns result beyond the range specified...?</title><link>http://www.sqlservercentral.com/Forums/Topic602011-1418-1.aspx</link><description>please see the link below to help us figure out what's going on. Sample DDL and data will help us to solve your issues faster.  Thanks,Jon[url]http://www.sqlservercentral.com/articles/Best+Practices/61537/[/url]</description><pubDate>Fri, 14 Nov 2008 06:19:54 GMT</pubDate><dc:creator>jcrawf02</dc:creator></item><item><title>Select query returns result beyond the range specified...?</title><link>http://www.sqlservercentral.com/Forums/Topic602011-1418-1.aspx</link><description>Hi Members,Im doing a select in which im specifying the date range.."select key_id from result where started_at_date &amp;gt;= '2008-10-17 13:30:00' and ended_at_date &amp;lt;= '2008-10-17 13:30:20'"but in the above query im getting the key_id for which the date range is out of the date range specified here.That is im getting key_id = 5, for whcih started_at = '2008-10-18 13:30:00' and ended_at = '2008-10-18 13:30:20'Please help me to solve this issue.Regards,Prabhu.</description><pubDate>Thu, 13 Nov 2008 05:44:08 GMT</pubDate><dc:creator>prabhu.rangan</dc:creator></item></channel></rss>