I have a start_date and end_date. I want to get the list of data in between these two dates.
Can anyone help me pointing the mistake in my query.
select * from [dbo].[User]
where Date between'2014-8-01' AND '2014-8-30'
There is no error but also the query doesn't return any records.
between, and using fullyyyy-MM-ddformat, i.e.08instead of8for the month. I realize it's unlikely to make a different, but give that a try to start with. What's the type of theDatefield?