I have a table with many years as columns. y1976, y2077, .. , y2019,y2020 I want to dynamically return a column from a function.
Personally, your design is unahappy - against to ideas of relations databases. So any native tools will be impossible.
+1
I don’t know for sure that what is desired is not possible but only because the specification and model are more than I wish to untangle at the moment...