database
TRANSCRIPT
![Page 1: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/1.jpg)
Database Management
An Introduction
![Page 2: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/2.jpg)
Goals For Today:
Describe why databases have become so important to modern organizations
Describe what database and database management systems are and how they work.
Explain four emerging database trends:– (1) client / server computing, – (2) object-oriented databases, – (3) data mining, and – (4) integrating Web applications
![Page 3: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/3.jpg)
Database Defined
Database: – A collection of related data organized in a way
that facilitates data searches. What are some examples of Databases?
![Page 4: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/4.jpg)
Example of a Student Database
Types of Data Collected in a Typical Student Database
![Page 5: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/5.jpg)
Databases Before the Use of Computers
Data was stored in:– books– ledgers– card files– folders– file cabinets– or simply in people’s heads!?
![Page 6: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/6.jpg)
Computers make the process of storing and managing data easier
![Page 7: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/7.jpg)
The Database Approach
Database Management System– software application which allows you to
create, store, organize, and retrieve data from a single database or many databases.
– Example: MS Access Entity
– something you collect data about– Examples: people or classes
![Page 8: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/8.jpg)
A Database Contains the Following: Tables
– how entities are represented in a database, where each row is a record and each column a field.
Fields– individual pieces of information
Record– collection of related fields within one entity
![Page 9: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/9.jpg)
Sample Data Table (page 2-94 in your book)
![Page 10: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/10.jpg)
Key Database Issues and Activities Entering and Querying Data Creating Database Reports Data Structure Data Type
![Page 11: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/11.jpg)
Entering Data
Data Entry:– process of getting information into a database– possible methods of data entry:
Data Entry Professional, Electronic Files, Historical Records, or Web Based (Forms)
![Page 12: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/12.jpg)
Querying Data Querying:
– how we get information from a database Structured Query Language (SQL):
– most common language used to interface with databases
– Example:SELECT DISTINCTROW STUDENT_ID, GRADE
FROM GRADES
WHERE GRADE = “A”
ORDER BY STUDENT_ID;
![Page 13: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/13.jpg)
Querying Data continued Query By Example (QBE)
– enables you to fill out a grid, or template, in order to construct a description of the data you would like to retrieve.
![Page 14: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/14.jpg)
![Page 15: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/15.jpg)
Creating Database Reports Report:
– A compilation of data from the database that is organized and produced in a printed format.
– Typically produced on paper, but also can be displayed on-screen.
– Example: Quarterly Sales Report
![Page 16: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/16.jpg)
Data Structure
Database has two parts:– Data– Data Structure: how the data is organized.
Data Model:– representation of entities and their relationships to the
real world Primary Key:
– a unique identifier in the database– one or more fields
![Page 17: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/17.jpg)
Data Structure continued
Primary Key is Student ID
![Page 18: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/18.jpg)
Data Type
Data Type:– each field in the database needs to be of a
certain type– Examples: text, number, dates
Data Dictionary:– a document (often published online) prepared
by the database designers to aid users in data entry.
![Page 19: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/19.jpg)
Data Dictionary Example:
Students Table
Primary Key Field Name Field Type Field Length
yes Student ID Number 9
no Last Name Text 20
no First Name Text 15
![Page 20: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/20.jpg)
Database Management Systems Approaches The Hierarchical Model The Network Model Relational Model Normalization Associations
![Page 21: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/21.jpg)
The Hierarchical Model Records in parent entities can have many
child records, but each child can have only one parent.
Parent
Child
![Page 22: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/22.jpg)
The Network Model
In this case you can have multiple children and parents Parents
Children
![Page 23: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/23.jpg)
The Relational Model– A good relational database design eliminates
unnecessary data duplications and is, therefore, easier to maintain
– Relationship: joining two tables on a common field
Relationship
![Page 24: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/24.jpg)
Normalization
A technique used to make complex databases more efficient and easier to handle
Eliminates Redundant Data
![Page 25: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/25.jpg)
Normalization continuedDatabase w/redundant data
![Page 26: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/26.jpg)
Database after Normalization
![Page 27: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/27.jpg)
Three Types of Associations or Relationships
– One-to-One Each team has only one home stadium, and each home stadium has
only one team– Team ID Team Name Location Stadium ID
– One-to-Many Each Player is on only one team, but each team has many players
– Player ID Player Name Position Team ID
– Many-to-Many Each player participates in many games, and each game has many
players
Team 1 Team 2 Date Player ID Points Minutes Fouls
![Page 28: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/28.jpg)
Recent Developments AffectingDatabase Design and Use Databases and Client / Server Computing Object-Oriented Databases Data Mining Linking Web Site Applications to
Organizational Databases
![Page 29: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/29.jpg)
Databases and Client / Server Computing
Database application is divided into two parts: – Database Server
where all data is stored on a powerful machine
– PC Client the program used to manipulate the data resides on an
individual user’s computer
![Page 30: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/30.jpg)
Object-Oriented Databases
treat tables, queries, and other components as generic reusable OBJECTS (rather than data) that can be mixed and matched and used in many applications (e.g. MS Excel and MS Access).
Most of today’s database applications have some of these Object characteristics.
![Page 31: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/31.jpg)
Data Mining
Allows companies to sort and analyze information to better understand customers, products, markets, or any other phase of their business for which data has been captured.
Example: Grocery Store Club Cards
![Page 32: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/32.jpg)
Data Mining continued Data Warehouses
– An integration of multiple, large databases and other information sources into a single repository or access point that is suitable for direct querying, analysis, or processing
![Page 33: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/33.jpg)
Data Warehouse Examples
TELECOMMUNICATIONS REPRESENTATIVE COMPANIES
Analysis of the following: AT&T
Call volumes Ameritech
Equipment sales Belgacom
Customer profitability British Telecom
Costs Telestra AustraliaTelecom Ireland
Inventory Telecom Italia
Purchasing leverage with suppliers
Frequent buyer program management
![Page 34: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/34.jpg)
Data Mining continued Data Marts
– A small-scale data warehouse that contains a subset of the data for a single aspect of a company’s business
– Examples: finance, inventory, or personnel
![Page 35: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/35.jpg)
Linking Web Site Applications to Organizational Databases Example:
– many comapies are enabling users of their Web Site to:
view product catalogs, check inventory, and place orders
these are all actions that read and write to the organizations’ databases.
![Page 36: Database](https://reader035.vdocuments.site/reader035/viewer/2022070315/5554a378b4c90502618b4ce4/html5/thumbnails/36.jpg)
Goals For Today:
Described why databases have become so important to modern organizations
Described what database and database management systems are and how they work.
Explained four emerging database trends:– (1) client / server computing, – (2) object-oriented databases, – (3) data mining, and – (4) integrating Web applications