Beruflich Dokumente
Kultur Dokumente
of the Enterprise
Objectives
Define of database systems
Introduce data modeling and SQL
Discuss emerging requirements of
database systems
DATA
?
INFORMATION
Attributes of data
Sharable
Moveable
Secure
Accurate
Timely
Relevant
Data hierarchy
Bits
Characters
Fields (columns)
Records (rows)
Files (table)
Database
Advantages of DBMS
More info from the same data
Reduction of data duplication
Improved data integrity
Programs are independent of the data
format
Sharing of data resources
and disadvantages
Added expense
More hardware may be needed
If it crashes.
Sophisticated design and programming
required
Additional training
Security is critical
Relational model
Relation? Attribute? Tuple?
Keys
Primary and foreign
Referential integrity
Relational algebra
Relational DB rules
Every row must have exactly the same
number of columns (fields or attributes)
Each row can have only one value stored in
each column (fields or attributes)
A column must contain the same kind of
value in every row of that column
No two rows can be exactly the same
The order of the rows or of the columns cant
be used to provide information
Terminology
Data
Processing
Informal
Formal
Relational DB Relational DB
File
Table
Relation
Record
Row
Tuple
Field
Column
Attribute
Data modeling
Purpose: control and visualization
Process: gathering requirements
Results: forms and diagrams
Normalization
Purpose:
Avoid anomalies
Reduce redundancy
Process:
ERD questions
What are the subjects/objects of the
business?
data entities
ERD questions
Over what period of time are you interested in
this data?
cardinality & time dimensions
Are all instances of each object the same?
supertypes, subtypes, aggregations
SQL
Definition (DDL)
CREATE, ALTER, DROP
Manipulation (DML)
SELECT, INSERT, UPDATE, DELETE
Video Streams
Graphics
Video
Audio
HTML/
SGML
Spatial Data
Time Series
Unstructured
Audio Streams
Images
Text
Structured
Current RDBMS
Simple
Summary
Defined of database systems
Introduced data modeling and SQL
Discussed emerging requirements of
database systems