I have this data below which is Quarters or Years. How do I in SQL legacy rewrite it so it can show?
RAW Data:
- Q2M4_20/21
- Q3M2_20/21
- Q1M4_18/19
- Q1_18/19_Actuals
- Q1_18/19_Budgets
Goal (Result needed):
- FY20_Q2M4
- FY20_Q3M2
- FY18_Q1M4
- FY18_Q1_Actuals
- FY18_Q1_Budget
NOTE: I would like the sql to also do the following:
- Reorganize from QQ_YY to YY_QQ
- Remove "/##" the forward slash and the two digits after
- Add text "FY" before the "YY_QQ
I tried CHARINDEX My error message states "2.10 - 2.23: Unrecognized function charindex"
Thanks for looking into this.
