Projection with a field creates from another field
Hi,
Is it possible to use CAST and CASE functions while creating a projection of a table ???
Is it possible to use CAST and CASE functions while creating a projection of a table ???
0
Comments
No. https://my.vertica.com/docs/7.0.x/HTML/index.htm#Authoring/AdministratorsGuide/ConfiguringTheDB/Phys...
Table is logical object, projection is physical object - column in projection is reference to table column, expression not allowed. Only PK/FK join are allowed.
PS
Hm... How to create projection for this? Encoding? Sorting?
The fields in projection should always be a direct set of base table fields ??
In projection no, but you can optimize a projection for calculation and create a VIEW. Also you can create a derived column.
For example: