The Basic Elements of Database
The Basic Elements of Database
C
R
L
U
M
N
First name,
First Name
Last Name,
Address,
STUDENT TABLE
Last Name
Address
City
City
3. RECORDS The table records contain the actual data for the colmuns
Ex.:
Student ID
001
002
Last Name
Angelo
Address
#125 St.
City
Manila
003
4. DATA TYPES determine the type of data that can be stored in a database
column.
THREE (3) COMMONLY USED DATA TYPES:
Illustration:
AUTHORS TABLE
Authors
ID
Book ID
Title
Name
BOOKLIST TABLE
Authors
Cost
ID
Biograph
y
Category
Descripti
on
ONE-TO-ONE
Table 1
Table 2
ID
1
2
Value
A
B
ID
1
2
Value
A
B
ID
1
2
Value
A
B
ONE-TO-MANY
Table 1
ID
1
2
Table 2
Value
A
B
MANY-TO-MANY
Table 1
ID
1
2
Table 2
Value
A
B
ID
1
2
Value
A
B