Could you use the following ?:
SELECT * FROM table_name WHERE CONVERT(DATE, column_name) >= '2017-01-01' AND CONVERT (DATE, column_name) <= '2017-03-31';
But you probably have to use only CONVERT , as in the above query you will get data between two specific dates.
This should only be the part of the DATE that causes the problems, as well as how you inserted the data. If you entered dates in the format " YYYY-MM-DD ", it should work correctly.
source share