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

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
Bernadette Lea
Members (if Group): Cawaling

Section:
DM21
Professor:
Sir Tim Awat

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

CCS0021L-Information Management Page 2 of


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

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


20
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


20
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


20
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


20
 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


20
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


20
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


20
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 20
CCS0021L-Information Management Page 11
of 20
VII. QUESTION AND ANSWER

1. What are other versions of Oracle database?


Oracle, one of the most widely used database systems in the world, is used by some of the world's largest
corporations. Oracle provides unique capabilities in many areas, including management, performance,
security, and development, with many different Oracle database versions published.

This database system is simple to use for both database administrators and developers to design creative
applications for their corporate operations. The Oracle brand is well-known for its ongoing commitment to
the development of enhanced features to better assist small and large enterprises with their data
management needs. The most recent Oracle versions are 11G, 12C, 18C, and 19C.

A Breakdown of Oracle Versions


Version 11G
Version 11G is an earlier iteration of the Oracle database versions, having been released in 2008. There
are no pluggable databases in this RDBMS. This Oracle version is thought to be relatively simple to set up,
develop, and maintain. It provides a user-friendly browser-based interface with built-in database change
testing. This is a valuable feature that was missing in prior Oracle versions.

Version 12C

CCS0021L-Information Management Page 12


of 20
Oracle officially introduced Version 12C, the first in the C series, in 2014. Because it's the first version of
Oracle designed to function on the Cloud, it's designated with a C rather than a G. Businesses may easily
migrate their existing Oracle database information to the Cloud using this Oracle version. The Oracle
Database now contains 500 new features in version 12C. The pluggable databases and multitenant
architecture are the most significant characteristics.

Version 18C
Oracle 18C is the most recent version to be published as a stand-alone database. This self-driving
database secures and repairs itself. Version 18C is available on-premises or on the Oracle cloud. Based on
its release year of 2018, this version has begun a new Oracle version naming structure. As a result, there
are no discharges between 12 and 18 degrees Celsius.

Oracle Version 19C


The 19C, the most recent Oracle version, was launched in early January 2019. It has been designated as
the long-term release for the Oracle database 12.2 product family. This version will be supported through
the year 2023, with extended support possible until the year 2026.

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 13


of 20
EXERCISE

2
DATA MODELING USING E-R MODEL

Student Name / Group


Name:
Name Role
Bernadette Lea
Members (if Group): Cawaling

DM21
Section:
Sir Tim Awat
Professor:

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 14


of 20
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)

CCS0021L-Information Management Page 15


of 20
Cardinality is the minimum and maximum number of values in the relationship.
 Minimum values can be either optional (zero) or mandatory (at least one).
 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 16


of 20
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 17


of 20
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
order Received
by
products Goes to Supplied
by
suppliers supplies

Task 2

CCS0021L-Information Management Page 18


of 20
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.

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.
An entity with associative properties (using Chen notation)
As previously stated, associative entities are implemented using associative tables, which are tables that
can contain references to columns from the same or other database tables inside the same database.

CCS0021L-Information Management Page 19


of 20
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 20


of 20

You might also like