STID3014 - Chapter1 - Introduction To Database
STID3014 - Chapter1 - Introduction To Database
INTRODUCTION TO
DATABASE
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
Stock Price
6.34
6.45
6.39
6.62
6.57
6.64
6.71
6.82
7.12
7.06 Last 10 Days
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;
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
Improved maintenance through data
independence
DBMS separates the data descriptions from the application, thereby making
applications immune to changes in data descriptions
Increased concurrency
Two or more users allowed to access the same file/data simultaneously
Improved backup and recovery services
DBMSs provide facilities to minimize the amount of processing that is lost/failure.
Disadvantages of DBMS
39
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
Higher impact of a failure
Failure of certain components can bring operations to a halt
Objectives
41
Stages
of the
Databas
e
Applica
tion
Lifecycl
e
Database Planning
46
Steps:
1. Mission statement
2. Mission objectives
3. Development of standards
Database Planning – Mission Statement
48
Centralized approach
Requirements for each user view are merged into a single set
of requirements.
Major aims:
Represent data and relationships between data
required by all major application areas and user
groups.
Provide data model that supports any transactions
required on the data.
Specify a minimal design that is appropriately
structured to achieve stated performance
requirements for the system (such as response times).
Database Design - approach
64
Approaches include:
Top-down: starts with the development of data models
using the Entity-Relationship (ER) model
Bottom-up : begins at the fundamental level of
attributes
Inside-out: identify major entities first and then
consider its other entities, relationship and attributes
Mixed : both top-down and bottom-up
Database Design - Data Modeling
65