vcujackson
Technical User
Platform: MS SQL Server 2005
I am trying to construct an sql view based on a fiscal year starting with 7(July) and ending with 6(June). I will eventually use totals for a 4 year fiscal year. If the giftdate falls within the date range, I want to list the totals in the correct fiscal year. I want a total for pastdue,fy2008,2009,2010 and 2011
ie
Select sum(giftamount) as paymentsDue,giftkey
The output should look like this
pastdue $0.00 or amount
fy2008 $0.00 or amount
fy2009 $0.00 or amount
fy2010 $0.00 or amount
fy2011 $0.00 or amount
I am thinking I need a parameter based on a date range and several case statements
Any ideas?
I am trying to construct an sql view based on a fiscal year starting with 7(July) and ending with 6(June). I will eventually use totals for a 4 year fiscal year. If the giftdate falls within the date range, I want to list the totals in the correct fiscal year. I want a total for pastdue,fy2008,2009,2010 and 2011
ie
Select sum(giftamount) as paymentsDue,giftkey
The output should look like this
pastdue $0.00 or amount
fy2008 $0.00 or amount
fy2009 $0.00 or amount
fy2010 $0.00 or amount
fy2011 $0.00 or amount
I am thinking I need a parameter based on a date range and several case statements
Any ideas?