ken hanse
asked on
date diff with Fiscal Calendar
How could I go back a fiscal year for a given date?
My organization use the format of the Fiscal year as follows:
'FY2015', 'FY2016', 'FY2017'
I need to get these values automatically using SQL Query
My organization use the format of the Fiscal year as follows:
'FY2015', 'FY2016', 'FY2017'
I need to get these values automatically using SQL Query
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Looks like you have a couple of working solutions, but if you'd like a design that specifically handles fiscal years check out SQL Server Calendar Table: Fiscal Years, where 'back a fiscal year for a given date' can have multiple meanings and can be accomplished by the appropriate JOIN.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.