On applying the where condition :
WHERE DateFilled BETWEEN '02/01/2014' AND '02/28/2014'
My syntax is not detecting the values which are filled on 02/28/2014
.
If I write the syntax as
WHERE DateFilled >= '02/01/2014'
I am getting the output.
In the SQL Server table, DateFilled
column has a value as follows.
2014-02-28 09:24:00.000
What could be the reason? Any date conversion is required. How to get StartDate
and EndDate
using BETWEEN
condition?
BETWEEN
on columns that have time components (hint: don't do that), I would strongly suggest going back and checking to make sure it's doing what you expect.