MicroStrategy ONE
Add Attribute Parent statement
Adds an attribute parent to an attribute within a project.
Copy
ADD ATTRIBUTEPARENT "<attributeparent_name>" [IN FOLDER "<location_path>"] RELATIONSHIPTYPE (ONETOONE | MANYTOONE | MANYTOMANY) TO ATTRIBUTE "<attribute_name>" IN [FOLDER] "<location_path>" FOR PROJECT "<project_name>";
where:
-
attributeparent_name is the name of the attribute to be added as a parent, of type string, between double quotes (").
-
parent_location_pathis the folder where the new parent attribute resides, of type string, between double quotes (").
-
attribute_name is the name of the attribute for which a parent is to be added, of type string, between double quotes (").
-
location_path is the folder where the attribute resides, of type string, between double quotes (").
-
project_name is the name of the project, of type string, between double quotes (").
This statement can only be executed in a Windows environment.
Example
Copy
ADD ATTRIBUTEPARENT "Quarter" RELATIONSHIPTYPE MANYTOONE TO ATTRIBUTE "Month" IN FOLDER "\Schema Objects\Attributes" FOR PROJECT "MicroStrategy Tutorial";
