Home Forums SQL Server 2008 SQL Server Newbies Get data for the past one year (365 days) RE: Get data for the past one year (365 days)
David Webb-CDS
SSCoach
Points: 17398
More actions
August 23, 2013 at 11:21 am
#1644507
What's the data type of prodyear? If you are comparing an entire date against a column that only contains the year as an int or a 4 position varchar, you won't get what you are looking for.