0% found this document useful (0 votes)
764 views19 pages

(F1-ForMATIVE) Formative Assessment 1

This document provides instructions for a laboratory exercise on exploring the Oracle environment and data modeling using an entity-relationship (E-R) model. Students will learn how to start a logical model in Oracle Data Modeler, create entities, attributes, and relationships. They will model sample data about departments and employees. The intended learning outcomes are to use Oracle Data Modeler for data modeling tasks and convert organizational rules using the tool. Background information defines key components of a logical data model and E-R diagram.

Uploaded by

Andy Miguel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
764 views19 pages

(F1-ForMATIVE) Formative Assessment 1

This document provides instructions for a laboratory exercise on exploring the Oracle environment and data modeling using an entity-relationship (E-R) model. Students will learn how to start a logical model in Oracle Data Modeler, create entities, attributes, and relationships. They will model sample data about departments and employees. The intended learning outcomes are to use Oracle Data Modeler for data modeling tasks and convert organizational rules using the tool. Background information defines key components of a logical data model and E-R diagram.

Uploaded by

Andy Miguel
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOC, PDF, TXT or read online on Scribd
You are on page 1/ 19

COLLEGE OF COMPUTER STUDIES AND MULTIMEDIA ARTS

CCS0021L
(INFORMATION MANAGEMENT)

[F1-FORMATIVE]
Formative Assessment 1
EXERCISE

1
EXPLORING THE ORACLE ENVIRONMENT

Student Name / Group


Name:
Name Role
Members (if Group):

Section:

Professor:

I. PROGRAM OUTCOME/S (PO) ADDRESSED BY THE LABORATORY EXERCISE


a. Identify, Apply knowledge of computing appropriate to the discipline. [PO: A]

II. COURSE LEARNING OUTCOME/S (CLO) ADDRESSED BY THE LABORATORY EXERCISE


 Understand the fundamental concepts and principles of database management and database
administration. [CLO: 1]

CCS0021L-Information Management Page 2 of


19
III. INTENDED LEARNING OUTCOME/S (ILO) OF THE LABORATORY EXERCISE
At the end of this exercise, students must be able to:

 Explore the environment of Oracle DB application


 Apply the different database approach

IV. BACKGROUND INFORMATION

1
.

2
.

3
.
4
.

CCS0021L-Information Management Page 3 of


19
1. Menu Bar – Consists of the File, Edit, View, Team, Tools and Help.
2. Browser Toolbar – It consists the overview of the Logical Model (3) and Relational Model (4) of the
ERD.
3. Logical Model
This part consists of the Entities, Relations, Inheritances, Views, Subviews, and Display which will
be used during the ER modeling
These will all appear if your click on the + sign of the Logical model

4. Relational Models
This part consists the Tables, Views, Foreign keys, Schemas, Subviews, Physical Models and
Displays of the Logical Model when converted to its relational model equivalent.
These will appear when the + button is clicked beside the Relational Models

By default, the relational model will be labeled Relational_1.

V. GRADING SYSTEM / RUBRIC (please see separate sheet)

CCS0021L-Information Management Page 4 of


19
VI. LABORATORY ACTIVITY
Instructions:
I. Starting a Logical Model
 Right click on the Logical tab inside the Browser toolbar and click Show

 Then you will see in the center the Logical (Untitled 1) as your work area

Your work area

And you will see these Logical model tools above when your Logical Model work area is opened

CCS0021L-Information Management Page 5 of


19
Logical
Model tools

 Note: If the Logical Model tool is not found, just right click on the blue area near the
Menu bar and click Logical Model on the options found

 Let’s go over the common buttons used in Logical Model tools

 The select button selects the entities available.


 The new entity button creates a new entity.

CCS0021L-Information Management Page 6 of


19
 The new M:N relation button creates a many to many relationship between entities.
 The new 1:N relation button creates a one to many relationship between entities.
 The new 1:1 relation button creates a one to one relationship between entities.
 The delete button deletes the object on the Logical model work area.
 The Engineer to Relational Model button converts the Logical model to a relational
model.
 The Zoom in button zooms in the object or the area
 The Zoom out button zooms out the object or the area
 The Fit screen button fits the object on the size of the screen
 The Default size button makes the area in default screen size.

II. Now let us create a sample entity relationship model using the example below.
Create an entity relationship diagram of the following:

In this ERD, the business rule indicates that each department can have one or more employees or
many employees work in only one department.

Step 1: On the logical model work area, add a new entity by clicking on the “new entity” button.
Then click the + cursor on the work area, you will have something like this

CCS0021L-Information Management Page 7 of


19
Step 2: On the general tab, on the name text box, write the name Department. Do not close the
window yet. Click on the Attributes tab. You will have something like this:

Step 3: On the attributes, click the + sign to add an attribute.

On the attributes properties type in the following:


Name: DeptId
Datatype: Logical
Type: Numeric
Precision: 11
Scale: 0
Tick the “Primary UID” because this attribute is the primary key, and then click Apply.

Add another attribute by clicking the green + sign, then on the attribute properties type in the following:
Name: DeptName

CCS0021L-Information Management Page 8 of


19
Datatype: Logical
Type: varchar
Size: 100
Click “Mandatory” because a department name should not be blank
Then click ok.

Step 4: Create another entity using steps 1-3 but for the Employee entity.
Add the following attributes to the Employee entity
Attribute 1:
Name: EmployeeId
Datatype: Logical
Type: Numeric
Precision: 11
Scale: 0
Tick the “Primary UID” because this attribute is the primary key, and then click Apply.

Attribute 2:
Name: EmployeeName
Datatype: Logical
Type: varchar
Size: 100
Click “Mandatory” because a name of the employee should not be blank
Then click ok.

You should be having something like this:

Step 5: Let us add a relationship between entities. Since the relationship is one to many, click the button
“1:M relation” button. Then click on the entity Department entity and click on the employee entity to get a
new dialog box like this:

CCS0021L-Information Management Page 9 of


19
Then type the details and options found on the picture above. Then click ok and you will have something
like this:

Step 6: The current logical diagram notation above is Barker notation. Let us change it to Information
Engineering notation by clicking on the View tab of the Menu bar, then click on Logical Diagram notation,
and click Information Engineering notation.

Your diagram will look like this:

CCS0021L-Information Management Page 10


of 19
CCS0021L-Information Management Page 11
of 19
VII. QUESTION AND ANSWER

1. What are other versions of Oracle database?

Currently, the latest Oracle versions include 11G, 12C, 18C, and 19C.

VIII. REFERENCES

 Hoffer, Jeff (2016). Modern Database Management 12th edition. Pearson Education Limited
 Young, M. (2010). Oracle Data Modeling and Relational Database Design, Vol. 1 Student Guide,
Oracle.

CCS0021L-Information Management Page 12


of 19
EXERCISE

2
DATA MODELING USING E-R MODEL

Student Name / Group


Name: Fernando Luis Miguel
Name Role
Members (if Group):

Section:
DM21
Professor:
Tim Jamison Awat

I. PROGRAM OUTCOME/S (PO) ADDRESSED BY THE LABORATORY EXERCISE


b. Understand best practices and standards and their applications. [PO: M]

II. COURSE LEARNING OUTCOME/S (CLO) ADDRESSED BY THE LABORATORY EXERCISE


 Analyze business rules and translate them into user requirements.. [CLO: 2]

CCS0021L-Information Management Page 13


of 19
III. INTENDED LEARNING OUTCOME/S (ILO) OF THE LABORATORY EXERCISE
At the end of this exercise, students must be able to:
 Use Oracle Data Modeler to do data modeling tasks
 Convert Rules of organization using Data Modeler

IV. BACKGROUND INFORMATION


Logical Data Model

The goal of a logical data model is to develop an entity relationship diagram that represents the information
requirements of the business. Logical data modeling is independent of the hardware or software to be used for
the implementation.

Entity-Relationship Diagram (ERD) is a detailed, logical and graphical representation of the entities,
associations and data elements for an organization or business area.

Table 2.1 Components of an ERD

Component Purpose Example


Entity An object or concept about which you want to - DEPARTMENT
store information. - EMPLOYEE
- JOB
Relationship A natural association that exists between two or - DEPARTMENT may contain one or
more entities. many EMPLOYEEs.
- An EMPLOYEE must be assigned to
one and only one DEPARTMENT.
Attributes Description of entities and specific pieces of EMPLOYEE
information that must be known. - First name
- Last name
- Email

Associative entity is an entity type that associates the instances of one or more entity types and contains
attributes that are peculiar to the relationship between those entity instances. It is a relationship that can be
modeled as an entity type.

Relationship Types
 One-to-One (1:1)
 One-to-Many (1:M) or Many-to-One (M:1)
 Many-to-Many (M:M)

Cardinality is the minimum and maximum number of values in the relationship.


 Minimum values can be either optional (zero) or mandatory (at least one).

CCS0021L-Information Management Page 14


of 19
 Maximum values can be either one or many.

Figure 2.1 Cardinalities

Step-by-Step Construction of ERD


1. Identify entities
2. Find relationships
3. Draw rough ERD
4. Fill in cardinality
5. Define primary keys
6. Draw key-based ERD
7. Identify attributes
8. Map attributes
9. Draw fully attributed ERD
10. Check results

CCS0021L-Information Management Page 15


of 19
V. GRADING SYSTEM / RUBRIC

Criteria Descriptions Points


Relationship Matrix The entities and the relationship of entities 40
should be properly identified and labeled on
the Relationship Matrix table in Task 1

Completeness of the Entity The ERD should have complete attributes 40


Relationship Diagram with keys based on the relationship matrix
done in Task 1. It should also include
relationships, and minimum and maximum
cardinalities.
Proper implementation Proper use of symbol for entities with 20
complete attributes and primary keys and
relationships applied on SQL developer
data modeler.
Total 100%

CCS0021L-Information Management Page 16


of 19
VI. LABORATORY ACTIVITY

Prepare an E-R diagram for an online shop. The following describes this organization:

Business Rules:

 The shop has customers. Attributes of customers are customer_id(identifier), Firstname,


Lastname, Address, city, province, zip code. A customer can have many orders or none at all.
 Many orders or none can be placed by one customer. Attributes for orders are order_id (identifier),
order_date.
 One or many orders placed must have at least one product or more. Many products can be placed
in the orders. An attribute of the association between products and orders is Quantity.
 The attributes of products are product_id (identifier), product_name, description and price.
 Many products are supplied by many suppliers, and many suppliers supplies many products.
Attributes of suppliers are supplier_id (identifier), supplier_name, contact_no.
 An attribute of the association between supplier and products is traceNo.

Task 1

Analyze the business rule and fill-in the relationship matrix in Table 2.2 to track the existence of
relationships between entities.

Table 2.2 Relationship Matrix


Customer Order Products Suppliers
Customer Gets
Received
by
Products Goes to Supplied
by
Suppliers Supplies

CCS0021L-Information Management Page 17


of 19
Task 2

Draw a fully attributed ERD with keys based from the relationship matrix you have created in Task 1.
Draw it in Oracle SQL Developer Data Modeler. Once the model is done, take a screenshot of your
work and paste it here.

CCS0021L-Information Management Page 18


of 19
VII. QUESTION AND ANSWER

1. What is an associative entity? Explain how is it created?

In relational and entity–relationship theory, an associative entity is a term. To resolve many-to-many


relationships in a relational database, a base relation (or base table) must be implemented. Informally, an
associative table is a base relation that represents this type of item.

VIII. REFERENCES

 Hoffer, Jeff (2016). Modern Database Management 12th edition. Pearson Education Limited
 Young, M. (2010). Oracle Data Modeling and Relational Database Design, Vol. 1 Student Guide, Oracle.

CCS0021L-Information Management Page 19


of 19

You might also like