0% found this document useful (0 votes)
70 views29 pages

Chapter 7 - Database

يشفش لاشسث

Uploaded by

Jian Qin Chu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
70 views29 pages

Chapter 7 - Database

يشفش لاشسث

Uploaded by

Jian Qin Chu
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 29

Computer Application in Management:

Database
STID1103

Chapter 7:
Database and Information Management

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Learning Objectives
6.1 What are the problems of managing data resources in a
traditional file environment?
6.2 What are the major capabilities of database management
systems (DBMS), and why is a relational DBMS so powerful?
6.3 What are the principal tools and technologies for accessing
information from databases to improve business performance
and decision making?

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
File Organization Terms and
Concepts
• Database: Group of related files
• File: Group of records of same type
• Record: Group of related fields
• Field: Group of characters as word(s) or number(s)
• Entity: Person, place, thing on which we store information
• Attribute: Each characteristic, or quality, describing entity

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.1 The Data Hierarchy

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Problems with the Traditional File
Environment
• Files maintained separately by different departments
• Data redundancy
• Data inconsistency
• Program-data dependence
• Lack of flexibility
• Poor security
• Lack of data sharing and availability

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.2 Traditional File Processing

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Database Management Systems
• Database
– Serves many applications by centralizing data and
controlling redundant data
• Database management system (DBM S)
– Interfaces between applications and physical data files
– Separates logical and physical views of data
– Solves problems of traditional file environment
 Controls redundancy
 Eliminates inconsistency
 Uncouples programs and data
 Enables organization to centrally manage data and data
security
Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.3 Human Resources
Database with Multiple Views

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Relational DBMS
• Represent data as two-dimensional tables
• Each table contains data on entity and attributes
• Table: grid of columns and rows
– Rows (tuples): Records for different entities
– Fields (columns): Represents attribute for entity
– Key field: Field used to uniquely identify each record
– Primary key: Field in table used for key fields
– Foreign key: Primary key used in second table as look-
up field to identify records from original table

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.4 Relational Database Tables

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Operations of a Relational DBMS
• Three basic operations used to develop useful sets of data
– SELECT
 Creates subset of data of all records that meet
stated criteria
– JOIN
 Combines relational tables to provide user with
more information than available in individual tables
– PROJECT
 Creates subset of columns in table, creating tables
with only the information specified

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.5 The Three Basic
Operations of a Relational DBMS

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Capabilities of Database Management
Systems
• Data definition capability
• Data dictionary
• Querying and reporting
– Data manipulation language
 Structured Query Language (SQ L)
• Many DB M S have report generation capabilities for
creating polished reports (Microsoft Access)

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.6 Access Data Dictionary
Features

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
SQL Query

• Structured Query Language (SQL) is a query language that


allows users to manage, update, and retrieve data

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Example of an SQL Query

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.8 An Access Query

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Building a Form
• Form data entry on-screen help
• With use version Access the latest,
build form be more easy
• Click the Create tab, the option Form is like below

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Building a Form (Continue...)

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Example of a Form
• A form is a window on the screen that provides areas for
entering or modifying data in a database

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Building a Report
• A report generator allows users to design a report on the
screen, retrieve data into the report design, and then display or
print the report

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Example of a Report

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Designing Databases
• Conceptual design vs. physical design
• Normalization
– Streamlining complex groupings of data to minimize redundant
data elements and awkward many-to-many relationships
• Referential integrity
– Rules used by RDBM S to ensure relationships between tables
remain consistent
• Entity-relationship diagram
• A correct data model is essential for a system serving the
business well

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.9 An Unnormalized Relation
for Order

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.10 Normalized Tables
Created from Order

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.11 An Entity-Relationship
Diagram

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Databases and the Web
• Many companies use the web to make some internal
databases available to customers or partners
• Typical configuration includes:
– Web server
– Application server/middleware/CG I scripts
– Database server (hosting DBM S)
• Advantages of using the web for database access:
– Ease of use of browser software
– Web interface requires few or no changes to database
– Inexpensive to add web interface to system

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Figure 6.15 Linking Internal
Databases to the Web

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved
Establishing an Information Policy
• Firm’s rules, procedures, roles for sharing, managing,
standardizing data
• Data administration
– Establishes policies and procedures to manage data
• Data governance
– Deals with policies and processes for managing
availability, usability, integrity, and security of data,
especially regarding government regulations
• Database administration
– Creating and maintaining database

Copyright © 2020, 2018, 2016 Pearson Education, Inc. All Rights Reserved

You might also like