Documente Academic
Documente Profesional
Documente Cultură
Applied Database
System
CSB3
Topics
Definition of Terms
Creation of File and Entering Records
Datasheet Records
Sorting and Filtering
Normalization Process
Table Relationships
What is Database?
A collection of data
That is organized
So that it can easily be accessed, managed and updated
What is Database Management
Systems(DBMS)?
A collection of programs
That enables you to :
− input
− organize
− select data
in a database
Definition of Terms
Student Information
studentID Last name First name Gender
2010-1000 Cruz Maria F
2009-1234 Abad Maria M
2010-10001 Perez Juan M
2010-10003 Reyes Pedro M
Example of Tables
Course
Student information
Student Information
studentID Last name First name Course
2010-1000 Cruz Maria BSN
2009-1234 Abad Maria BSECE
2010-10001 Perez Juan BSN
2010-10003 Reyes Pedro BSIE
What are NULL Values?
Example
Changeable Values
Example
Primary Keys
Example
Derivative Data
Student_Course
studNo Name year courseCode courseDesc
100 Lorna 1 BSA Accountancy
101 Ricky 2 BSMA Management Accounting
120 Juvy 4 BSIT Information Technology
320 Joy 4 BSA Accountancy
Purpose of Normalization
Insertion Anomalies
Deletion Anomalies
Modification Anomalies
Student_Course
studNo Name year courseCode courseDesc
100 Lorna 1 BSA Accountancy
101 Ricky 2 BSMA Management Accounting
120 Juvy 4 BSIT Information Technology
320 Joy 4 BSA Accountancy
121 Roy 3 BSCE Civil Engineering
Process of normalization: 1NF
(First Normal Form)
Student_Course
studNo Name year courseCode courseDesc College
100 Lorna 1 BSA Accountancy COM
101 Ricky 2 BSMA Management COM
Accounting
120 Juvy 4 BSIT Information Technology CICCT
320 Joy 4 BSA Accountancy COM
121 Roy 3 BSCE Civil Engineering ENG
Process of normalization: 3NF
(Third Normal Form)
Student_Course
studNo Name year courseCode courseDesc College
100 Lorna 1 BSA Accountancy COM
101 Ricky 2 BSMA Management COM
Accounting
120 Juvy 4 BSIT Information Technology CICCT
320 Joy 4 BSA Accountancy COM
121 Roy 3 BSCE Civil Engineering ENG
Example 1:
One-to-One Relation
One-to-Many Relation
Many-to-Many Relation
Steps in Modeling Relations
1. Discover a relation
2. Define the scope of the relation
Is it important to the user?
3. Determine the type of relation
Can entity A be related to more than one entity B?
Can entity B be related to more than one entity A?
Answers:
2No answers = 1 to 1
1Yes/1No = 1 to many
2Yes answers = many2many
Identify the type of relationship exhibited by
the following:
1. Student and course
2. Course and college
3. Course and school
4. Doctor and patient
5. Instructor and school
6. Student and school