For statistical reasons, I need to group several ids in a single column of a materialized view.
This should form a list of ids from other tables with an info. Further processing will be done on this view. The goal is to save seconds of processing by first generating this view instead of querying all the tables (about 10) one by one.
But I don't understand if I can create a new column name with view or only select one in existing table.
Best Answer
There are two ways to specify the name of a view column:
Do it with a column list:
Do it with aliases in the defining query: