Beruflich Dokumente
Kultur Dokumente
Introduction to Databases
Lecture1
2
Introduction
5
Introduction(Continued…)
6
Data
The term data refers to known raw facts about things like
people places, events and concepts
– Sources of data: careful observation, experiment and research
– Data can exist in the form of text, graphics, images,
audio and/or video
ID Name Address City State
2 Robert 2 3 r d Te r r a c e Boston MA
Data in Context
7
Flow of Data
Summarizing ,Averaging
Graphing the data and adding
Adding context
8
Information
9
Metadata
Metadata
10
What is DBMS?
Evolution of
Database
Systems
12
File-Based Approach
University
File-Based System
13
Limitations of File-Based Approach
Other limitations:
– Duplication of data
– Data dependency
– Slow development, high maintenance and fixed queries
14
The Database System
Limitations of file-based approach tell us that:
– Parameters defining data should be separately stored
– There should be a way to control and manipulate data in isolation of the
application program
Need to reduce long lead times and high cost in new application
development. Lead time is the latency between the initiation
and execution of a process.
16
University’s Database System
17
Example University Database
– STUDENTs
– PRE-REQUISITE COURSEs
– COURSEs
– DEPARTMENTs
– INSTRUCTORs
18
Example University Database(Continued…)
Some mini-world relationships:
– STUDENTs take COURSEs
– COURSEs have PRE-REQUISITE
COURSEs
– INSTRUCTORs teach COURSEs
– COURSEs are offered by
DEPARTMENTs
– STUDENTs major in DEPARTMENTs
19
Example Relational Database Snapshot
20
Components of a Database System
– Software
(DBMS)
– Hardware
Components of a
Database System
– Users
21
Functions of Database Systems
Database systems allow users to
Store
Update
Retrieve
Organize and
Protect their data
People involved in Database Systems
23
Advantages of Using the Database Approach
A DBMS is primarily responsible for providing a logical view of
underlying data
– Allows its user to store, retrieve, and update data in the database
– Provides a clear and logical view of the process that manipulates the
data
Data independence
– Maintain segregation between the program and the data
– Every time when some change needs to be made to the data structure ,
the programs that access the data should not change
– Improved flexibility: changes can be made very easily
Concurrency control
Providing multiple user interfaces for different classes of users
– Users who know little about programming can easily interact with the
DB
24
Advantages of Using the Database Approach
26
Disadvantages of Using the Database Approach
Expensive
– High initial investment in hardware, software,
personnel, etc.
Overhead
– Overhead for providing generality ,security, recovery ,
concurrency control, ect.
27
When NOT to use a DBMS
28
Database Development Process
1. Enterprise modeling
– Describes the data needed for database system
– The real world is so complex and modeling an
enterprise
,or even a part of it is not an easy task
– Background knowledge of the organization is
very important
2. Conceptual database modeling:
– Entity-relationship (E-R) modeling
3. Logical database design:
– Relational data modeling is used to transform the E-
R diagram into a relational schema
4. Physical database design and creation:
– Detailed specification of data elements, data types,
indexing
options ,etc.
– Selection of software (DBMS) and
29 hardware
End of Slides
Thank You!
Any Questions?
30