Hi Marco, as I said I'm trying to get a bit further with templates. To make my point I selected a rather simple example. Basically what I want is templates for queries and methods I use frequently. What I'm trying to do is create an improved version of the following template:
select distinct [column_name]
from [owner].[table_name]
where I have replaced column_name, owner and table_name with queries, so I can select them from the metadata.
It's not a big deal, but it would expand the template capabilities greatly if there were solutions for some of the issues, such as template functions lower, upper and dequote.