User:Zebabasu/ERD Exercises

From Wikipedia, the free encyclopedia

[edit] ERD Exercises

<graphviz> digraph g { graph [ edge[fontsize=9]; node[fontsize=10, fontname=arial, style=filled, fillcolor=lightgray]; rankdir = "LR", ranksep = ".5" ]; edge [ ];

     Persons1 [label="Persons: Persons1 | <pk>PersonPK: 563822| ObjectType: 1 | realname: %SOHN%"
     shape = "record"];
     OrgObj1 [label="Orgobj: Orgobj1 | <pk>ObjectPK: 563822| ObjectType: 1 | <pk2>PersonPK: 563822"
     shape = "record"];
     Obj1 [label="Objects: Obj1 | <pk>ObjectPK: 563822| ObjectType: 1 | ObjectDesc: SOHN, TAMMARYN DAWN (W F 10/03/1977)"
     shape = "record"];
     Doc1 [label="Documents: Doc1 | <pk>DocPK: 3304426| DocType: 10| DocDesc: MPD ARREST AR#20060231275..."
     shape = "record"];
     Desc1 [label="Descriptions: Desc1 | DescPK: 5235558| <pk>DocPK: 3304426| <pk2>ObjectPK: 563822" 
     shape = "record"];
     Desc2 [label="Descriptions: Desc2 | DescPK: 6769252| <pk>DocPK: 3304426| <pk2>ObjectPK: 563822"
     shape = "record"];
     Persons1:pk:e -> OrgObj1:pk2:w;
     OrgObj1:pk:e -> Obj1:pk2:w;
     Desc1:pk2:e -> Obj1:pk:w [dir=back];
     Desc2:pk2:e -> Obj1:pk:w [dir=back];
     Doc1:pk:e -> Desc1:pk:w [dir=back];
     Doc1:pk:e -> Desc2:pk:w [dir=back];


  }

</graphviz>