Hello,
I am trying to create a query with a case statement with a where clause to take into account a fiscal year from 10/1/yyyy to 09/30/yyyy. For example, If the getdate month is between 1 and 6 then I need to pull people with the paid thru of 9/30/ + the current year. If the getdate month is between 7 and 12 then I would need the selection to pull people with the paid thru of the 9/30 + the following year. Using SQL 2005. Any help would be greatly appreciated.
Thanks
Smatthews
I am trying to create a query with a case statement with a where clause to take into account a fiscal year from 10/1/yyyy to 09/30/yyyy. For example, If the getdate month is between 1 and 6 then I need to pull people with the paid thru of 9/30/ + the current year. If the getdate month is between 7 and 12 then I would need the selection to pull people with the paid thru of the 9/30 + the following year. Using SQL 2005. Any help would be greatly appreciated.
Thanks
Smatthews