Link to home
Start Free TrialLog in
Avatar of HKFuey
HKFueyFlag for United Kingdom of Great Britain and Northern Ireland

asked on

View filter not working SQL 2008

SQL Server 2008. This does not work

>= DATEFROMPARTS(YEAR(GETDATE()) - 2, 1, 1)

I'm trying to return data for the lat 2 year plus year-to-date. Anyone know what works in 2008?
ASKER CERTIFIED SOLUTION
Avatar of hilltop
hilltop
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of HKFuey

ASKER

That looks promising will give it a try, thanks!
Avatar of HKFuey

ASKER

Thank you.