You are on page 1of 40
DATAMAN – Database Management INTRODUCTION TO DATABASE
DATAMAN – Database Management
INTRODUCTION TO
DATABASE
Download this presentation at:  spsbl.edu.ph/Database.pptx
Download this
presentation at:
 spsbl.edu.ph/Database.pptx
Definition  A database is a collection of data arranged according to a fixed structure.
Definition
 A database is a collection of
data arranged according to a
fixed structure.
Filing Cabinet Manual type of database
Filing Cabinet
Manual type of database
IBM Computers in the 1960’s
IBM Computers
in the 1960’s
IBM 360
IBM 360
Personal Computer
Personal
Computer
Early 90’s laptop
Early 90’s laptop
Mobile Devices
Mobile Devices
Significance The move from paper to computer databases was a huge leap in information management and
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
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 use of databases allowed for the rise of corporate infrastructure, credit card processing,
Significance
 The use of databases allowed for
the rise of corporate
infrastructure, credit card
processing, email and the
Internet.
Significance  Databases allow for data to be shared across the world instead of being housed
Significance
 Databases allow for data to be
shared across the world instead
of being housed in one location
on a physical piece of paper.
Business Applications  Databases are obviously used in business applications and financial transactions.
Business Applications
 Databases are obviously used in
business applications and
financial transactions.
Click icon to add picture Inventory Systems Warehouses use databases to manage inventory levels and storage
Click icon to add
picture
Inventory
Systems
Warehouses use databases to manage
inventory levels and storage location.
Point of Sale (POS)
Point of Sale
(POS)
Retail Stores  Retail stores can use databases to store prices, customer information, sales information and
Retail Stores
 Retail stores can use databases
to store prices, customer
information, sales information
and quantity on hand.
E-commerce
E-commerce
Banking System  Banks use databases to keep track of customer accounts, balances and deposits.
Banking System
 Banks use databases to keep
track of customer accounts,
balances and deposits.
Other applications of database:  Payroll System  Schools  Hospitals (patient record system)  Government
Other applications of
database:
 Payroll System
 Schools
 Hospitals (patient record system)
 Government Agencies
 Telecommunications
 Internet
World Wide Web  Websites use databases to store content, customer login information and preferences and
World Wide Web
 Websites use databases to store
content, customer login
information and preferences and
may also store saved user input.
Social Media
Social Media
DATABASE OBJECTS
DATABASE OBJECTS
Table  A structured list of data of a specific type.  It is the basic
Table
 A structured list of data of a
specific type.
 It is the basic unit of a database.
First
Middle
Birthda
Last Name
Course
Year
Address
Name
Name
y
Dela Cruz
Juan
Santos
BSA
2
Tacloban
City
Palo, Leyte
Dulag, Leyte
1/12/8
7
Arroyo
Gloria
Macapagal
BSC
1
4/5/47
Pelicano
Reynel
Odtuhan
BSC
4
4/7/84

A table containing student records

Column  A single field in a table. 1 st field 5th field First Middle Birthda
Column
 A single field in a table.
1 st field
5th field
First
Middle
Birthda
Last Name
Course
Year
Address
Name
Name
y
Dela Cruz
Juan
Santos
BSA
2
Arroyo
Gloria
Macapagal
BSC
1
Pelicano
Reynel
Odtuhan
BSC
4
Tacloban
City
Palo, Leyte
Dulag, Leyte
1/12/8
7
4/5/47
4/7/84
Row  A record in a table. Last First Middle Course Ye Address Birthda y Name
Row
 A record in a table.
Last
First
Middle
Course
Ye
Address
Birthda
y
Name
Name
Name
ar
Dela
Juan
Santos
BSA
2
Tacloban
1/12/8
1
st
7
Cruz
City
record
Arroyo
Gloria
Macapa
BSC
1
Palo,
4/5/47
gal
Leyte
Pelicano
Reynel
Odtuhan
BSC
4
Dulag,
4/7/84
3rd
Leyte
record
Data Type  A type of allowed value.  Every table column has an associated data
Data Type
 A type of allowed value.
 Every table column has an
associated data type that
restricts (or allows) specific data
in that column.
Access Datatypes  Text – accepts alphanumeric characters and symbols. (maximum length of 255 characters) 
Access Datatypes
 Text – accepts alphanumeric characters and
symbols. (maximum length of 255
characters)
 Memo – accepts alphanumeric characters
and symbols. (maximum length of 65,535
characters)
 Number – used in mathematical operations
 Date/Time – accepts proper date and time
format
 Currency – similar to Number data type with
a currency symbol and 2 decimal places
Primary Key  A column (or set of columns) whose values uniquely identify every row in
Primary Key
 A column (or set of columns)
whose values uniquely identify
every row in a table.
Students Table
Last
First
Middle
Course
Yea
Address
Birthda
Name
Name
Name
r
y
Dela Cruz
Juan
Santos
BSA
2
1/12/8
7
Arroyo
Gloria
Macapagal
BSC
1
Tacloban
City
Palo, Leyte
Dulag, Leyte
4/5/47
Pelicano
Reynel
Odtuhan
BSC
4
4/7/84
Primary Key (PK)  A column (or set of columns) whose values uniquely identify every row
Primary Key (PK)
 A column (or set of columns)
whose values uniquely identify
every row in a table.
Primary
Key
Student
Last
First
Middle
Course
Ye
Address
Birthd
ay
ID (PK)
Name
Name
Name
ar
2006-
Dela
Juan
Santos
BSA
2
Tacloban
City
Palo, Leyte
1/12/87
12345
Cruz
2005-
Arroyo
Gloria
Macapag
BSC
1
3/3/54
00001
al
2004-
Pelican
Reynel
Odtuhan
BSC
4
Dulag,
4/7/84
10518
o
Leyte
Subjects Table Sectio Course No Unit Schedule Room n Code s 0001 COMSKL1 3 0002 OBLICON
Subjects Table
Sectio
Course No
Unit
Schedule
Room
n Code
s
0001
COMSKL1
3
0002
OBLICON
3
8:00-9:00 MWF
5:30-7:00 TTH
101
103
0080
DATAMAN
3
11:00-12:00
CL2
0483
MATHINV
3
104
0399
SOFTAPP
3
CL1
0080
DATAMAN
3
0005
COMSKL1
3
MWF
2:30-4:00 TTH
2:00-3:00 MWF
8:30-10:00 TTH
7:00-8:00 MWF
CL2
203
Composite Primary A primary key with two or more columns. Key SY Sem Sectio Course No
Composite
Primary
A primary key with two or more
columns.
Key
SY
Sem
Sectio
Course No
Unit
Schedule
Room
(PK)
(PK)
n
s
Code
(PK)
14-15
2
0001
COMSKL1
3
8:00-9:00 MWF
5:30-7:00 TTH
101
14-15
2
0002
OBLICON
3
103
14-15
2
0080
DATAMAN
3
11:00-12:00
CL2
14-15
2
0483
3
104
14-15
2
0399
MATHINV
SOFTAPP
DATAMAN
3
CL1
14-15
1
0080
3
CL2
14-15
2
0005
COMSKL1
3
MWF
2:30-4:00 TTH
2:00-3:00 MWF
8:30-10:00 TTH
7:00-8:00 MWF
203
Student Load Table Student SY Sem Section Grade ID Code 2006- 14-15 2 0001 1.3 12345
Student Load Table
Student
SY
Sem
Section
Grade
ID
Code
2006-
14-15
2
0001
1.3
12345
2006-
14-15
2
0080
3.0
12345
2005-
14-15
2
0002
1.5
00001
2005-
14-15
2
0080
2.2
00001
2005-
14-15
2
0483
1.8
00001
Primary Key Student SY Sem Section Grade ID (PK) (PK) (PK) Code (PK) 2006- 14-15 2
Primary
Key
Student
SY
Sem
Section
Grade
ID (PK)
(PK)
(PK)
Code
(PK)
2006-
14-15
2
0001
1.3
12345
2006-
14-15
2
0080
3.0
12345
2005-
14-15
2
0002
1.5
00001
2005-
14-15
2
0080
2.2
00001
2005-
14-15
2
0483
1.8
00001
Foreign Key  A column in one table that contains the primary key values from another
Foreign Key
 A column in one table that
contains the primary key values
from another table.
Conditions in assigning a primary key  No two rows can have the same primary key
Conditions in assigning a primary
key
 No two rows can have the same
primary key value.
 Every row must have a primary
key value.
Relationships  A database contains tables that are related.  Two tables are related if they
Relationships
 A database contains tables that
are related.
 Two tables are related if they
contain fields that match.
Types of Relationships A. One to Many One record in one table matches no, one, or
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.
A screenshot of Microsoft Access
A screenshot of Microsoft Access