MicroStrategy ONE

Add Attribute Child statement

Adds an attribute child to an attribute within a project.

Copy
ADD ATTRIBUTECHILDattributechild_name[IN 
 FOLDERchild_location_path]RELATIONSHIPTYPE 
 (ONETOONE | ONETOMANY | MANYTOMANY) TO ATTRIBUTEattribute_name IN 
 [FOLDER]location_pathFOR 
 PROJECTproject_name;

where:

  • attributechild_name is the name of the attribute to be added as a child, of type string, between double quotes (").

  • child_location_path is the folder where the new child attribute resides, of type string, between double quotes (").

  • attribute_name is the name of the attribute for which a child 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 ATTRIBUTECHILD "Day" RELATIONSHIPTYPE 
 ONETOMANY TO ATTRIBUTE "Month" IN FOLDER "\Schema Objects\Attributes" 
 FOR PROJECT "MicroStrategy Tutorial";