1.0 Introduction (Part1)
1.0 Introduction (Part1)
INTRODUCTION TO
DATABASE
(PART 1)
Objectives
2
1) STID3013 – A
2) CGPA – 3.42
3) Height – 1.70 m
4) Name – Jack
5) Average Marks for STID3013 – 70.5
6) 24/8/2010 - The date of your mid sem
exam.
Differences between Data and
Information
4
Data
6.34
6.45 Stock Price
6.39
6.62
6.57
6.64
6.71
6.82
7.12
Last 10 Days
7.06
DATA vs INFO - Conclusion
6
Examples of Database Applications
7
Duplication of data
Same data is held by different programs.
Wasted space and potentially different values
and/or different formats for the same item.
Limitations of File-based Approach
13
Data dependence
File structure is defined in the program code.
External Level
Users' view of the database.
Describes that part of database that is relevant to a
particular user.
Conceptual Level
Community view of the database.
Describes what data is stored in database and
relationships among the data.
Internal Level
Physical representation of the database on the
computer.
Describes how the data is stored in the database.
Differences between Three Levels of ANSI-SPARC
Architecture
17
Objectives of Three-Level Architecture
18
First-generation
Hierarchical and Network
disadvantages: - complex programs
- minimal data independence
- no accepted theoretical foundation
Second generation
Relational
problems: limited modeling capabilities
Third generation
Object Relational
Object-Oriented
The Database System Environment
25
The Database System Environment
26
Hardware
Can range from a PC to a network of computers.
Software
DBMS, operating system, network software (if necessary) and also
the application programs.
Data
Used by the organization and consists of operational data and the
meta-data.
The Database System Environment
27
Procedures
Instructions and rules that should be applied to the
design and use of the DBMS.
A view mechanism.
Provides users with only the data they want or need to use.
Views
34
Benefits include:
Reduce complexity;
Provide a level of security;
Data consistency
Reduced the risk by eliminating/controlling Data Redundancy – update once
Sharing of data
Authorized user can share the same data
Improved security
Protection from unauthorized user
Enforcement of standards
Allow DBA to define and the DBMS to enforce necessary standards
Economy of scale
Cost saving
Balanced conflicting requirements
Each user has needs that may be conflict with the needs of other users – DBA can design database
that provide best use of resources for the organization as a whole
Improved data accessibility and responsiveness
Through query – list certain data
Advantages of DBMS (continue...)
38
Increased productivity
DBMSs provide standard functions that programmer have to write on their own
Increased concurrency
Two or more users allowed to access the same file/data simultaneously
Complexity
Functionality makes DBMSs complex – must understand the functionalities to
make full use of DBMS
Size
Requiring substantial amounts of memory to run efficiently
Cost of DBMS
License/memberships/single;multiple users/maintenance
Cost of conversion
Converting existing applications to run the new DBMS & hardware
Performance
Many applications/high load/peak time