Professional Documents
Culture Documents
INTRODUCTION TO
DATABASE
Download this
presentation at:
spsbl.edu.ph/Database.pptx
Definition
A
database is a collection of
data arranged according to a
fixed structure.
Filing Cabinet
IBM Computers
in the 1960s
IBM 360
Personal
Computer
Mobile Devices
Significance
The move from paper to computer
databases was a huge leap in
information management and
storage.
Significance
Databases are much more efficient
than paper storage because:
they take up less space
easily accessed by multiple users
at once
can be transferred long distances
with virtually no delay
Significance
The
Significance
Databases
Business Applications
Databases
Point of Sale
(POS)
Retail Stores
Retail
E-commerce
Banking System
Banks
Other applications of
database:
Payroll
System
Schools
Hospitals (patient record system)
Government Agencies
Telecommunications
Internet
Social Media
DATABASE OBJECTS
Table
A
First
Name
Middle
Name
Course
Year
Address
Birthda
y
Dela Cruz
Juan
Santos
BSA
Tacloban
City
1/12/8
7
Arroyo
Gloria
Macapagal BSC
Palo, Leyte
4/5/47
Pelicano
Reynel
Odtuhan
BSC
Column
A
1st field
Last Name
5th field
First
Name
Middle
Name
Course
Year
Address
Birthda
y
Dela Cruz
Juan
Santos
BSA
Tacloban
City
1/12/8
7
Arroyo
Gloria
Macapagal BSC
Palo, Leyte
4/5/47
Pelicano
Reynel
Odtuhan
BSC
Row
A
record in a table.
Last
Name
1
record
st
3rd
record
First
Name
Middle
Name
Course
Ye
ar
Address
Birthda
y
Dela
Cruz
Juan
Santos
BSA
Tacloban
City
1/12/8
7
Arroyo
Gloria
Macapa
gal
BSC
Palo,
Leyte
4/5/47
Odtuhan BSC
Dulag,
Leyte
4/7/84
Pelicano Reynel
Data Type
A
Access Datatypes
Text
Primary Key
A
Students Table
Last
Name
First
Name
Middle
Name
Course
Yea
r
Address
Birthda
y
Dela Cruz
Juan
Santos
BSA
Tacloban
City
1/12/8
7
Arroyo
Gloria
Macapagal
BSC
Palo, Leyte
4/5/47
Pelicano
Reynel
Odtuhan
BSC
Last
Name
First
Name
Middle
Name
Course
Ye
ar
Address
Birthd
ay
200612345
Dela
Cruz
Juan
Santos
BSA
Tacloban
City
1/12/87
200500001
Arroyo
Gloria
Macapag
al
BSC
Palo, Leyte
3/3/54
200410518
Pelican Reynel
o
Odtuhan
BSC
Dulag,
Leyte
4/7/84
Subjects Table
Sectio
n Code
Course No
Unit
s
Schedule
Room
0001
COMSKL1
8:00-9:00 MWF
101
0002
OBLICON
5:30-7:00 TTH
103
0080
DATAMAN
11:00-12:00
MWF
CL2
0483
MATHINV
2:30-4:00 TTH
104
0399
SOFTAPP
2:00-3:00 MWF
CL1
0080
DATAMAN
8:30-10:00 TTH
CL2
0005
COMSKL1
7:00-8:00 MWF
203
Composite
Primary
Key
SY
(PK)
Sem
(PK)
Sectio
n
Code
(PK)
Course No
Unit
s
Schedule
Room
14-15
0001
COMSKL1
8:00-9:00 MWF
101
14-15
0002
OBLICON
5:30-7:00 TTH
103
14-15
0080
DATAMAN
11:00-12:00
MWF
CL2
14-15
0483
MATHINV
2:30-4:00 TTH
104
14-15
0399
SOFTAPP
2:00-3:00 MWF
CL1
14-15
0080
DATAMAN
14-15
0005
COMSKL1
7:00-8:00 MWF
203
SY
Sem
Section
Code
Grade
200612345
14-15
0001
1.3
200612345
14-15
0080
3.0
200500001
14-15
0002
1.5
200500001
14-15
0080
2.2
200500001
14-15
0483
1.8
Primary
Key
Student
ID (PK)
SY
(PK)
Sem
(PK)
Section
Code
(PK)
Grade
200612345
14-15
0001
1.3
200612345
14-15
0080
3.0
200500001
14-15
0002
1.5
200500001
14-15
0080
2.2
200500001
14-15
0483
1.8
Foreign Key
A
Relationships
A
Types of Relationships
A. One to Many
One record in one table matches no, one, or
many records in the other table.
B. One to One
One record in one table matches one record
(or no record) in the other table.
C. Many to Many
Zero, one, or many records in one table
match zero, one, or many records in the
other table.