I have a table of values and they have a date field. The date field values are 1-12, these relate to a period in the fiscal year. I want to create another column and assign the correct month in each row by looping through with the following criteria:
1 = 04
2 = 05
3 = 06 etc.
I can do this with seperate update queries but how do I put all the queries together like an IF THEN ELSE statement. I have tried CASE statements and Subqueries, neither have worked.
Any ideas would be greatly appreciated.
1 = 04
2 = 05
3 = 06 etc.
I can do this with seperate update queries but how do I put all the queries together like an IF THEN ELSE statement. I have tried CASE statements and Subqueries, neither have worked.
Any ideas would be greatly appreciated.