Quantcast
Channel: SQLServerCentral » SQL Server 2014 » Development - SQL Server 2014 » Latest topics
Viewing all articles
Browse latest Browse all 3145

missing one record when selecting by date range

$
0
0
When I run this query:[quote]SELECT orderno, * FROM _order WHERE order_date >= '5/14/2015 00:00:00' AND order_date < '5/15/2015 11:59:59' ORDER BY order_date asc[/quote]I get a result of:[quote]A1G722 2015-05-14 13:00:11.143A1G723 2015-05-14 13:33:35.407A1G724 2015-05-14 13:39:16.657A1G725 2015-05-14 14:25:43.507A1G726 2015-05-14 14:29:18.050A1G727 2015-05-14 15:38:12.263[/quote]But I know there is one more record that falls into 05/15/2015[quote]A1G728 2015-05-15 12:26:52.807[/quote]Can you see what I am missing in my query in order for me to retrieve the missing record A1G728?Many thanks.

Viewing all articles
Browse latest Browse all 3145

Trending Articles