You are on page 1of 40

DATAMAN Database Management

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

Manual type of database

IBM Computers
in the 1960s

IBM 360

Personal
Computer

Early 90s laptop

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

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 in one location
on a physical piece of paper.

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 location.

Point of Sale
(POS)

Retail Stores
Retail

stores can use databases


to store prices, customer
information, sales information
and quantity on hand.

E-commerce

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 Agencies
Telecommunications
Internet

World Wide Web


Websites

use databases to store


content, customer login
information and preferences and
may also store saved user input.

Social Media

DATABASE OBJECTS

Table
A

structured list of data of a


specific type.
It is the basic unit of a database.

A table containing student records


Last Name

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

Dulag, Leyte 4/7/84

BSC

Column
A

single field in a table.

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

Dulag, Leyte 4/7/84

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

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)
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 a table.

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

Dulag, Leyte 4/7/84

Primary Key (PK)


A
Primary
Key
Student
ID (PK)

column (or set of columns)


whose values uniquely identify
every row in a table.

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)

A primary key with two or more


columns.

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

8:30-10:00 TTH CL2

14-15

0005

COMSKL1

7:00-8:00 MWF

203

Student Load Table


Student
ID

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

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 value.
Every row must have a primary
key value.

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

You might also like