Hi,
I am trying to write a select statement in a SP that returns records > or = to a start date and < or = to an end date. The time and date are stored in this field of SQL Server.
The problem is that it is not returning any records equal to the end date; It only returns from the start date to one day prior to the end date.
I assume that it is because it is looking for the end date with a 00:00:00 time, which would make it end the day before the end date.
How do I just select the records with a start and end date without using a time in the end date?
-Uncle Cake
I am trying to write a select statement in a SP that returns records > or = to a start date and < or = to an end date. The time and date are stored in this field of SQL Server.
The problem is that it is not returning any records equal to the end date; It only returns from the start date to one day prior to the end date.
I assume that it is because it is looking for the end date with a 00:00:00 time, which would make it end the day before the end date.
How do I just select the records with a start and end date without using a time in the end date?
-Uncle Cake