Professional Documents
Culture Documents
Data Sets Are Flexible Data Structures That
Data Sets Are Flexible Data Structures That
Data Sets Are Flexible Data Structures That
Introduction
1
Characteristics of the
Database Approach
Data Independence - the separation of the
data from the various application programs and
other accesses by users
Data Standardization - data elements within a
database have standard definitions, thus stored
data are compatible with every application
program that accesses the data
One-Time Data Entry and Storage -
individual data values are entered into the
database only once; consequently, redundancy
is reduced and inconsistencies between data
elements are eliminated
Characteristics of the
Database Approach
Data Integration - data sets integrate the data,
which enables all affected data sets to be updated
simultaneously
Shared Data Ownership - all data within a
database are owned in common by the users. The
portion of the database that is of interest to each user
is known as the sub-schema
Centralized Data Management - the database
management system stands guard over the database
and presents the logical view to users and
application programs
Program-Data
Independence
Application
Program A
Database
Management
Database
System
Application
Program B
Figure 6-1
2
Questions for Database
Design and Construction
Planning
Cost-benefit Analysis
Effective usage Analysis
Analysis
Enterprise Diagram
User Requirements
Data requirements
⌧Firm’s operations and relationships
Development of logical design
⌧Expected output requirements
⌧Inputs
⌧Processes
⌧Appropriate Conceptual Model
⌧Data Modeling through Entity-Relationship Diagrams
Specification of logical view(s)
Designation of Primary and Secondary keys
Development of Data Dictionary
Technical Specifications
Report Layouts
Data Flows
Screen Layouts
DBMS Selection
⌧Data Definition Language (DDL)
⌧Data Manipulation language (DML)
⌧Query language [Structured Query Language (SQL)
and/or Query by Example (QBE)]
⌧Data-base Control System (DBCS)
3
DBMS
Many DBMS packages allow users to:
Analyze Data
Prepare ad hoc or customized Reports
Create and Display Graphs
Create Customized Applications via
Programming Languages
Import and Export Data
Perform On-line Editing
Purge or Archive Obsolete Data
Backup data
Maintain Security Measures
Interface with Communication Networks
Implementation
Testing
Unit Testing
System Testing
User Acceptance Test
Maintenance
DATA MODELING
4
Why is data modeling
considered crucial?
5
Conceptual Data Model
(cont)
INTRODUCTION TO E-R
MODELING
ERD
Graphical representation of ER model.
6
FUNDAMENTALS OF E-R
MODELING
ENTITIES
ENTITIES (cont)
7
ATTRIBUTES
ATTRIBUTES (cont)
ATTRIBUTES (cont)
8
ATTRIBUTES (cont)
MULTIVALUED ATTRIBUTES
An attribute that may take on more than
one value for each entity instance
(sometimes termed a repeating group)
IDENTIFICATION
9
KEYS & IDENTIFIERS (cont)
RELATIONSHIPS
RELATIONSHIPS (cont)
A relationship is an association that exists
between one or more entities.
10
RELATIONSHIPS (cont)
DEGREE OF A RELATIONSHIP
DEGREE OF A RELATIONSHIP
(Cont)
11
DEGREE OF A RELATIONSHIP
(Cont)
DEGREE OF A RELATIONSHIP
(Cont)
12
CARDINALITIES OF RELATIONSHIPS
CARDINALITIES (Cont)
Sample ER Diagram
13
Associative Entities
Relational Databases
14
Relational Algebra Functions in
a Relational Database - Select
Select
15
Relational Algebra Functions in a
Relational Database - Select & Project
Student_Name Student_Major
Penny Pasta Latin
16
Join
Customer_Name Customer_Code
Customer_Code Credit_Limit
+
1001 10,000
Thanks.
17