Assignment 1 Venkat Sir

You might also like

Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1of 1

\*---------------Query For Attributes ----------------------------*/

MQL<1>add attribute "Cancelled Status" description "This is my attribute for


Technical Publication" type string range = Cancelled range = "Not Cancelled";
Attribute 'Cancelled Status' successfully added
MQL<2>add attribute "Cancelled Comments" description "This is my attribute for
Technical Publication" type string multiline;
Attribute 'Cancelled Comments' successfully added
MQL<3>add attribute "CancelledDate" description "This is my attribute for Technical
Publication" type date;
Attribute 'CancelledDate' successfully added
MQL<4>add attribute "ReActivationDate" description "This is my attribute for
Technical Publication" type date;
Attribute 'ReActivationDate' successfully added

\*---------------------------- Query for Role ---------------------------*/

MQL<5>add role "Tp Manager" description "This is role for Technical Prodution";
Role 'Tp Manager' successfully added
MQL<6>add role "Tp Reviewer" description "This is role for Technical Prodution";
Role 'Tp Reviewer' successfully added
MQL<7>add role "Tp Approver" description "This is role for Technical Prodution";
Role 'Tp Approver' successfully added

/* ------------------ Query for Type -------------------------*/

MQL<8>add type "Technical Publication" description "this is type of Tecnical


Publication" derived Document abstract false attribute "Cancelled Status" attribute
"Cancelled Comments" attribute CancelledDate attribute ReActivationDate;
Type 'Technical Publication' successfully added

/* ------------------- Query for RelationShip ----------------------- */

MQL<9>add relationship "Technical Publication" description "this is the


relationship between Part to Technical Publication" from type Part cardinality one
to type "Technical Publication" cardinality many;
Relationship 'Technical Publication' successfully added
MQL<10>add relationship "Tp Reviewer" description "this is the relationship between
Technical Publication to Person" from type "Technical Publication" to type
Person ;
Relationship 'Tp Reviewer' successfully added
MQL<11>add relationship "Tp Approver" description "this is the relationship between
Technical Publication to Person" from type "Technical Publication" to type
Person ;
Relationship 'Tp Approver' successfully added

You might also like