SQL Server 2008 select data only between month and year
问题 I would like select data between two date, without day An input example: start month: 9 , start year: 2011 end month: 3, end year: 2012 I think that there are two way to do this. The first is convert start month and start year to date like 2011-09-01 and convert last date to 2012-03-31 , but this requires calculation of the last day of end month. Obtained these date we can use a BEETWEN function for the WHERE clause (but, is the CONVERT function reliable?) The second solution is to use the