I currently have 3 tables - one with week (WW) (1 - 5), one with month (MM)(Jan - Feb) and one with year (YY)(2003 - 2010). I dare say there is a better way...
What I am trying to do is generate a unique code (and store in a table) which concatenates YYMMWW for every possibility.
ie:
Year 2003; Month 01; Week 01 (030101)
Year 2004; Month 01; Week 02 (030102)
etc
I am sure this can be done very easily using a piece of code along the lines of "Do this while not EOF...."
Does anyone know/understand what I am looking for and how I can do this quickly?
NKA
The answer's always easy - if you know it! ;-)
What I am trying to do is generate a unique code (and store in a table) which concatenates YYMMWW for every possibility.
ie:
Year 2003; Month 01; Week 01 (030101)
Year 2004; Month 01; Week 02 (030102)
etc
I am sure this can be done very easily using a piece of code along the lines of "Do this while not EOF...."
Does anyone know/understand what I am looking for and how I can do this quickly?
NKA
The answer's always easy - if you know it! ;-)