Link to home
Start Free TrialLog in
Avatar of ken hanse
ken hanseFlag for Australia

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
SOLUTION
Avatar of Pawan Kumar
Pawan Kumar
Flag of India 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
ASKER CERTIFIED SOLUTION
Avatar of Bill Prew
Bill Prew

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
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
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