Using SQL Server 2000. I have two Fields that I trying to limit to:
TRADE_MONTH(int)
TRADE_YEAR(int)
What I am trying to do is get the previous 3 fullmonths. So today is March 2007 I need December 2006 to February 2007. Trying to keep from having to manually input the numbers to query my results.
Also if anyone has a dateserial also for a different query that would greatly appreciated too.
Field is
datetime: 2004-10-16 09:44:05.380
Thanks for any help or insight.
TRADE_MONTH(int)
TRADE_YEAR(int)
What I am trying to do is get the previous 3 fullmonths. So today is March 2007 I need December 2006 to February 2007. Trying to keep from having to manually input the numbers to query my results.
Also if anyone has a dateserial also for a different query that would greatly appreciated too.
Field is
datetime: 2004-10-16 09:44:05.380
Thanks for any help or insight.