Professional Documents
Culture Documents
Managing Data Using Dbms Software: Prepared By: Dr. Marygin E. Sarmiento Professor III
Managing Data Using Dbms Software: Prepared By: Dr. Marygin E. Sarmiento Professor III
SOFTWARE
Prepared by:
DR. MARYGIN E. SARMIENTO
Professor III
OBJECTIVES:
• To define what is
database
• To identify the advantages
and Disadvantages of
DBMS and its capabilities
• To acknowledge the
importance of planning a
Database
• To understand the type of
Files.
DATABASE
It is a collection of related
information or
interrelated data which is
organized in a useful
manner that provides
basic procedures like
retrieving information,
drawing conclusions, and
making decisions.
DATABASE MANAGEMENT
SYSTEM
• Dictionary
• Telephone directory
• Bank accounts,
• Student records,
• Personnel and
employees records,
• Inventories
• cookbook,
• Personal information
RECORD
ItItisisaaset
setofofinformation
information
totobe bestored
storedininaarow.
row.
FIELD
It is a separate item in a
record. It is sometimes
called as column.
Examples
FIELD
RECORD
• Data Independence. It
allows the data to be
changed without the need
to reprogram, and the
program can be modified
without the reorganization
of data.
FUNCTIONS OF DATABASE
MANAGEMENT SYSTEM
• Data Independence. It is a
separation of data from
the application programs
that use the data. The
organized data can be
changed and evolved
necessitating changes in
application programs that
process data.
ADVANTAGES OF
DATABASE MANAGEMENT
• Integrated Data is
considered integrated for
any item of data can be
used to satisfy an inquiry
or a report. This advantage
is related to the reduced
redundancy advantage, for
data can be retrieved from
any place in the database.
ADVANTAGES OF
DATABASE MANAGEMENT
Ease of Application
Development. It reduces cost
and time for developing
business applications. A
program can code and debug
a new application at least 2 to
4 times faster than with
conventional data files.
ADVANTAGES OF
DATABASE MANAGEMENT
Identical rows
Solution- Add an order ID as a primary
key
OrderId Customer Name Order
Multiple Values
Solution: Create a separate table with
order items
OrderId Customer Name OrderId Item
1 Coke
3 Christian Jay Sarmiento
2 Nuggets
2 Lemonade
2 Fries
3 Burger
3 Fries
3 Coke
Problem 3- All data must be atomic (non
divisible) – can’t be split down further)
Order Customer Name OrderId Item
Id
1 Burger
1 Marygin Sarmiento
1 Fries
2 Sammy Sarmiento
1 Coke
3 Christian Jay Sarmiento
2 Nuggets
2 Lemonade
2 Fries
3 Burger
3 Fries
3 Coke
Solution:
1 Coke
3 Sarmiento Christian Jay
2 Nuggets
2 Lemonade
2 Fries
3 Burger
3 Fries
3 Coke
2ND NORMAL FORM
2 3 750
3 5 1000
3 3 750
Example – No Partial Dependency
Student Courses Course Fees
Student ID Course ID Course Course Fee
Composite Key ID
1 1
1 500
1 2
2 1000
2 1
4 200
2 3
3 750
3 5
5 1000
3 3
3 750
3rd NORMAL FORM
Composite Key
Tournament Year Winner Winner Date of Birth
Name
Indiana 1998 Al Fredrickson Al Fredrickson 21 July 1975
Invitational
Cleveland Open 1999 Bob Abertson Bob Abertson 28 September
Bowling 1999 Faeng 1968
Tournament Nepomuceno Faeng August 15, 1985
Des Moines 1999 Al Fredrickson Nepomuceno
Masters
Efren Bata Reyes June 20, 1980
9 Ball 1999 Efren Bata
Tournament Reyes
Chip Masterson 14 March 1977
Indiana 1999 Chip
Invitational Masterson
LESSON
Conceptual Data3Modeling
(Entity-Relationship Model)
Query
TABLE
Create Table is where you create the
table object with its corresponding
fields (based from normalization). This
is where you give a name to each field
and assign the proper data type and
size for each field (this was explained
in metadata discussion in the first
chapter).
Relationship
It helps to minimize errors and increase
efficiency by eliminating duplicate data.
The entity-relationship diagram is a
modeling tool used to represent data as
entities. It also represents relationships
between entities. The ERD is widely used to
model business problems and is a tool to
be able to design databases.
QUERY
Create Query is the database object which
allows you to query your database.
Without specifically coding your query, you
are able to extract particular data from
your tables using this object. This will allow
you to combine different tables. It allows
you to perform fundamental operations of
mathematical calculations.
Table
Relationship
Query
Table
Relationship
Query
Actual Demonstration
• Creating Customer Records
• Relationships (3 Tables)
• Convert them into one (1) table
• Query Design
• Computation
Database Name: Customer_Records
Table 1: Customer
Table 2: Order
Table 3: Product
Database Name: Customer_Records
Table 1 : Customer
FieldNames: Cust_Id
LastName
FirstName
Middlename
Address
ContactNo
Input 3 Records
Database Name: Customer_Records
Table 2 : Product
Field Names: Prod_Id
Item Description
Size
Color
Stocks
Unit_Price
Input 3 Records
Database Name: Customer_Records
Table 3:Order
Field Names: Cust_Id
Prod_Id
Date Purchased
Branch
Quantity
Total Amount
Input 3 Records
Activity:
Create a database for student records. Create 3
tables (Student, Schedule, Assessment)
Student Schedule Assessment
Stud_No Stud_No SubjCode
LastName SubjCode SubjDescription
FirstName Day Units
MiddleName Time Tuition Fee
ContactNo Section Misc. Fee
Address Room Total Fee
Email_Address Professor
Input 20 records