I did some searching here on this.. but it was either for PHP, Python or didnt relate.
I understand this is somewhat of an odd use for a query..
I have an existing app.
As a parameter to a section in this app (which is for name value pairs).. I can either pass in a string, or a query.
I'd rather not try use a hardcoded NVP 'string' to build this list.. but instead use a query to do this.
It wont be using any table or real data.. just used to build a NVP list of years actually.
What I'm hoping to get help with is to build a string output of years from 1920-2018* (*current year..so this doesnt need to be manually updated each year)..
I'd also like to have/inject a unique entry at the end. Current or Present.
So in the end I get an output like so:
1920|1920|1921|1921|1922|1922.........2018|2018|Present|Present
Is this possibly using a query?