Application Programming Interface Guide > DSL API > Data Views > Considerations
 
Considerations
Listed below are some points to consider while working with Data Views:
1. SQL is an attribute of type String. When a data view is created with a definition sql with a String value for it, the attribute "sql" is added with the definition sql on the view resource that is created. The definition sql can also be altered.
2. When renaming a view or relocating a view to a new location, RELOCATE AS is used in the syntax. Both rename and relocate can be performed in the same command.
3. When a data view is created or altered, the model.ALL_RESOURCE_PROPERTIES table is updated with the properties of the view : "sql". This is the attribute that is set on a data view when it is created using the DSL api. To read the value of a property from model.ALL_RESOURCE_PROPERTIES table, the "rest/execute/v1/actions/ query/invoke" can be used.