Professional Documents
Culture Documents
Oracle - SQL - Data - Modeler - Workshop Fast Foods
Oracle - SQL - Data - Modeler - Workshop Fast Foods
Modeler
Workshop
Main
Menu
g
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 18
Building an ERD: Step 3
d. In the Data type field, select Logical, then source type from
the dropdown list
e. Enter the attribute size
f. If the attribute is the primary key or is mandatory check the
appropriate box
g. Click Add Attribute to add another until done, then OK
a
b c
Double click on blue entity box in d
the model at any time to return
to the Entity Properties Window e
to modify the entity or its
attributes. f
g
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 19
Building an ERD: Step 3
• You can set commonly used Logical data types as
preferred by performing the following steps:
a. Select Tools > Preferences > Data Modeler, and then select
the Model node
b. Select the types from the All Logical Types section, and
then move them to the preferred area by clicking the arrow
c. Click OK
a
c
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 20
Building an ERD: Step 3
• To view only the preferred data types, select the
Preferred check box
• This will limit the options displayed in the drop-down
list for Logical types
b
a
a
b
c
c
a
Things are moving along well with our ERD. Our one-
to-many relationships, which compose the majority of
our relationships, have been created.
We can then create entities for specific staff categories which will
inherit the properties of the supertype entity, in addition to their
own specific attributes. Hence, the specific staff types will be
subtypes within the supertype entity.
Subtype
Great work!
b
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 38
Case Scenario: Barred Relationships
Faculty
Models
DD
L
Data Dictionary
DD
L Models
Data Dictionary
Synchroni
ze
DD
L
Data Dictionary
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 48
Case Scenario: Building a Relational Model
Name
Naming Formatter
Templates Relational Model
b
c
a
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 65
Adding the Glossary as the Naming Standard
• For the Glossary to be applied during engineering, you
must add it on the Naming Standard page in the
Preferences dialog box
• To add the Glossary, perform the following steps:
a. Right-click the Design Model in the Browser.
b. Select Properties.
c. Expand Settings and highlight the Naming Standard node
d. Click the green + icon, and then navigate to the location of the
Glossary
e. Click OK c
a
d
b
e
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 66
Editing the Glossary
a • To edit an existing Glossary:
a. Click Tools
b. Click Glossary Editor
c. Browse to the location of the
b
required Glossary file, and click
d. Select Open
c
Unique Unique
identifier identifier
Tables
Primary Primary
key key constraint
constraint
Tables
Foreign
key
constraint
Tables
Foreign
key column
d
b
e
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. 79
Applying Naming Abbreviations
• The Relational Model is now engineered with
constraint names that follow our naming standards
−Note: if the Logical Model has already been engineered,
sometimes it may be necessary to delete all objects in the
Relational Model, re-engineer the Logical, and then apply the
naming abbreviations