Professional Documents
Culture Documents
What is a Database?
Database A collection of permanently stored data that is:
Logically related
Shared
Protected
Managed
Win XP
Win 2000
Teradata
DATABASE
UNIX
Client
Mainframe
Client
Relational Databases
A Relational Database consists of a set of logically related tables.
A table is a two dimensional representation of data consisting of rows and
columns.
Column
EMPLOYEE
MANAGER
EMPLOYEE EMPLOYEE
NUMBER
NUMBER
Row
1006
1008
1005
1004
1007
1003
1019
1019
0801
1003
1005
0801
DEPT
NUMBER
JOB
CODE
LAST
NAME
301
301
403
401
403
401
312101
312102
431100
412101
432101
411100
Stein
Kanieski
Ryan
Johnson
Villegas
Trader
FIRST
NAME
HIRE
DATE
BIRTH
DATE
SALARY
AMOUNT
John
Carol
Loretta
Darlene
Arnando
James
861015
870201
861015
861015
870102
860731
631015
680517
650910
560423
470131
570619
3945000
3925000
4120000
4630000
5970000
4785000
Primary Key
Primary Key values uniquely identify each row in a table.
EMPLOYEE
MANAGER
EMPLOYEE EMPLOYEE
NUMBER
NUMBER
DEPT
NUMBER
JOB
CODE
LAST
NAME
301
301
403
401
403
401
312101
312102
431100
412101
432101
411100
Stein
Kanieski
Ryan
Johnson
Villegas
Trader
FIRST
NAME
HIRE
DATE
BIRTH
DATE
SALARY
AMOUNT
John
Carol
Loretta
Darlene
Arnando
James
861015
870201
861015
861015
870102
860731
631015
680517
650910
560423
470131
570619
3945000
3925000
4120000
4630000
5970000
4785000
PK
1006
1008
1005
1004
1007
1003
1019
1019
0801
1003
1005
0801
In a relational model,
Foreign Key
Foreign Key (FK) values identify table relationships.
EMPLOYEE (partial listing)
MANAGER
EMPLOYEE EMPLOYEE
NUMBER
NUMBER
DEPT
NUMBER
JOB
CODE
PK
FK
FK
FK
1006
1008
1005
1004
1007
1003
1019
1019
0801
1003
1005
0801
301
301
403
401
403
401
312101
312102
431100
412101
432101
411100
LAST
NAME
Stein
Kanieski
Ryan
Johnson
Villegas
Trader
FIRST
NAME
HIRE
DATE
BIRTH
DATE
SALARY
AMOUNT
John
Carol
Loretta
Darlene
Arnando
James
861015
870201
861015
861015
870102
860731
631015
680517
650910
560423
470131
570619
3945000
3925000
4120000
4630000
5970000
4785000
DEPARTMENT
NAME
MANAGER
BUDGET EMPLOYEE
AMOUNT NUMBER
PK
501
301
302
403
402
401
201
FK
marketing sales
research and development
product planning
education
software support
customer support
technical operations
80050000
46560000
22600000
93200000
30800000
98230000
29380000
1017
1019
1016
1005
1011
1003
1025
DEPT
NUMBER
JOB
CODE
PK
FK
FK
FK
1006
1008
1005
1004
1007
1003
1019
1019
0801
1003
1005
0801
301
301
403
401
403
401
312101
312102
431100
412101
432101
411100
LAST
NAME
Stein
Kanieski
Ryan
Johnson
Villegas
Trader
FIRST
NAME
HIRE
DATE
BIRTH
DATE
SALARY
AMOUNT
John
Carol
Loretta
Darlene
Arnando
James
861015
870201
861015
861015
870102
860731
631015
680517
650910
560423
470131
570619
3945000
3925000
4120000
4630000
5970000
4785000
DEPARTMENT
DEPT
NUMBER
DEPARTMENT
NAME
MANAGER
BUDGET EMPLOYEE
AMOUNT NUMBER
PK
501
301
302
403
402
401
201
FK
marketing sales
research and development
product planning
education
software support
customer support
technical operations
80050000
46560000
22600000
93200000
30800000
98230000
29380000
1017
1019
1016
1005
1011
1003
1025
Questions:
1. Name the department in which
James Trader works.
2. Who manages the Education
Department?
3. Identify by name an employee
who works for James Trader.
4. James Trader manages which
department?
Is easy to use
Is easy to understand
Models the business, not the processes
Is data-driven versus application driven
Makes applications easier to build
Supports trend toward end-user computing
Is the industry standard for most large enterprises
Allows businesses to respond to changing conditions more flexibly than
other types
Review Questions
Match each term with its definition below:
___ 1.
Database
___ 2.
Table
___ 3.
Relational database
___ 4.
Primary Key
___ 5.
Null
___ 6.
Foreign Key
a
b
c
d
e
f
Database
_e_ 2.
Table
_b_ 3.
Relational database
_a_ 4.
Primary Key
_d_ 5.
Null
_c_ 6.
Foreign Key
a
b
c
d
e
f