Data: Known Facts That Can Be Recorded. Ex 89
Data: Known Facts That Can Be Recorded. Ex 89
1
BASIC DEFINITIONS
Database Applications:
Banking: all transactions
Airlines: reservations, schedules
Universities: registration, grades
Sales: customers, products, purchases
Online retailers: order tracking, customized
recommendations
Manufacturing: production, inventory, orders, supply
chain
Human resources: employee records, salaries, tax
deductions
Databases touch all aspects of our lives 3
DATA BASE AND DATA BASE USERS 4
Users/Programmers
DATABASE
SYSTEM Application Programmer / Queries
DBMS
SOFTWA Software to Process
RE Queries/Programs
data
Software to access stored data
Stored4
Stored
database
database
(metadata)
Security problems
Hard to provide user access to some, but not all, data
7
MAIN CHARACTERISTICS OF THE
DATABASE APPROACH
11
INSTANCES AND SCHEMAS
13
RELATIONAL MODEL
Attributes
Example of tabular data in the relational model
14
A SAMPLE RELATIONAL DATABASE
15
THE ENTITY-RELATIONSHIP MODEL
It is collection of entities and relationships
Entity: real life “object” in the enterprise
16
SQL
17
DATA DEFINITION LANGUAGE (DDL)
18
DATA MANIPULATION LANGUAGE (DML)
Language for :
accessing
19
DATABASE USERS
Slid
e 1-
22
ADVANTAGES OF USING THE DATABASE
APPROACH
A 1 X L 7
B 2 Y P 8
C 3 Z Q 9
D 4 M R 10
E 5 N S 11
F 6 O T 12
A 1 X L 13
24
NETWORK MODEL: -
Data Records
Relationship Links(Viewed as pointer)
Records in the database are arranged as
collection of arbitrary graph.
25
HIERARCHICAL MODEL:
Similar to network model in the sense of records &
links.
Organized as collection of trees rather than graph.
26