DFo 4 1 Project
DFo 4 1 Project
Project Scenario:
You are a small consulting company specializing in database development. You have just been awarded the contract to develop a data model for a database
application system for a small retail store called Oracle Baseball League (OBL).
The Oracle Baseball League store serves the entire surrounding community selling baseball kit. The OBL has two types of customer, there are individuals who
purchase items like balls, cleats, gloves, shirts, screen printed t-shirts, and shorts. Additionally customers can represent a team when they purchase uniforms and
equipment on behalf of the team.
Teams and individual customers are free to purchase any item from the inventory list, but teams get a discount on the list price depending on the number of players.
When a customer places an order we record the order items for that order in our database.
OBL has a team of three sales representatives that officially only call on teams but have been known to handle individual customer complaints.
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
Section 4 Lesson 1 Exercise : Oracle SQL Developer Data Modeler
Oracle SQL Developer Data Modeler allows you to create Entities, attributes, and UIDs with correct optionality and cardinality, Supertype and subtype entities as
well as Arcs, hierarchical, barred, and recursive relationships.
1. The first step in building a logical model (ERD) in Oracle SQL Developer Data Modeler is to click the Logical tab.
a. If you do not see the Logical tab, then perform the following steps:
b. Right-click the Logical Model in the browser.
c. Select Show.
2. Create entities.
4. Create mandatory or optional attributes for each entity (at this stage don’t apply any data types to the attributes). Add comments to explain the attribute
where necessary. Do not include any foreign key attributes as these are added through the relationships.
5. Create the relationship between the entities. You can create M:N Relation (many-to-many), 1:N Relation (one-to-many), 1:N Relation identifying (one-to-
many barred) or 1:1 Relation (one-to-one).
a. Set the source entity and target entity for the relationship.
b. Name the relationship following the convention of naming the entity on the one side followed by a colon and naming the second entity in the
relationship (customer : customer address).
c. Use name on source and name on target to add the labels to the relationships. These won’t be displayed on the logical model but will be shown on
the physical model.
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.
2
Suggested task starting point
Copyright © 2020, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.