520 likes | 763 Views
Concepts of Database Management, Fifth Edition. Chapter 1: Introduction to Database Management. Objectives. Why study database management? Introduce Premiere Products, the company that is used as the basis for many of the examples throughout the text Introduce basic database terminology
E N D
Concepts of Database Management, Fifth Edition Chapter 1: Introduction to Database Management
Objectives • Why study database management? • Introduce Premiere Products, the company that is used as the basis for many of the examples throughout the text • Introduce basic database terminology • Describe database management systems • Explain the advantages and disadvantages of database processing • Introduce Henry Books, the company that is used in the case that runs throughout the text
Why manage data? • Changing view of data • Higher costs of lost data • Encouragement of “team problem-solving” • Flexible reporting • Integrating it into decision-making better
Background Info • DBMS software $25B/year industry • Networked DBMS growing fastest • DB research underpins • communication systems • Enterprise applications • multimedia • Internet • scientific applications
Data Management Tasks Common tasks for flat files and databases are: • designing the file or database structure • entering the data • updating data by adding, changing, or deleting • sorting the data • searching through the data for a record or group of records • obtaining screen or printed output
Approaches to Data Management include: • Custom Program Approach • File Processing System Approach • Database Management System Approach
Problems associated with file processing systems • Application/Program dependence • Data is separate and isolated • Data reduplication • Multiple formats; hard to share data across applications.
Operating System Database Management System Application Programs Database Management Databases Data Dictionary Database Management Systems
Disadvantages of DBMS Approach • Cost • Size • Complexity • Additional Hardware Requirements • Higher Impact of Failure • Recovery more difficult
External Databases Database Server End User Workstation Distributed Databases Operational Databases End User Databases Data Warehouse Databases Analytical Databases Major Types of Databases
Database Management Systems • Program(s) through which users interact with database • Popular DBMSs include • Access • Oracle • DB2 • SQL Server • Premiere Products decides to use Access
DBMS Classifications • Platform • Stand alone • Network • Mainframe • Organizational Level • `Individual • Workgroup • Enterprise-wide (ex. SAP use of Oracle) • Data Model Supported • Hierarchical • Network • Relational • Object-Oriented
Database Models • Hierarchical • Network • Relational • Object-oriented details follow
Employee Record 1 Employee Record 2 Employee Record 3 Employee Record 4 Name SS Salary Name SS Salary Name SS Salary Name SS Salary Data Data Data Data Data Data Data Data Data Data Data Data Logical Data Elements Personnel Database Payroll File Benefits File
Database Structures Network Structure Hierarchical Structure Relational Structure Dept Empno Dept A 1 A B 2 B C 3 C
Premiere Products • Distributor of appliances, house wares, and sporting goods • Uses spreadsheet software to maintain important data • Recent growth has made spreadsheet approach problematic
Problems Using Spreadsheet • Redundancy • Duplication of data or the storing of the same data in more than one place • Occurs when the same information is stored in more than one place • Difficulty accessing data • Limited security • Size limitations
Premiere Products Required Information • Sales Reps • Sales rep number, last name, first name, address, total commission, commission rate • Customers • Customer number, name, address, current balance, credit limit, customer sales rep • Parts Inventory • Part number, description, number units on hand, item class, warehouse number, unit price
Premiere Products Customer Order • Order • Order number, order date, customer number • Order line • Order number, part number, number units ordered, unit price • Overall order total • Not stored since it can be calculated
Database Background • Database • Structure that can store information about • Multiple types of entities • Attributes of those entities • Relationships among entities • Entity • Person, place, thing, or event • Premiere Products has sales reps, customers, orders, and parts
Database Background (con’t) • Attribute • Property of an entity • Customer has name, street, city, et cetera • May also be called a field or column
Database Background (con’t.) • Relationship • Association between entities • One-to-many relationship - rep is related to many customers • Customer is related to a single rep • Data file • File used to store data • Computer counterpart to ordinary paper file
Entity-relationship Diagram • Visual way to represent a database • Rectangles represent entities • Lines represent relationships between connected entities
Figure 1.8 and 1.9: Using DBMSs in Different Ways
Building a Database • Database design determines the structure of a database • Design entered into DBMS during construction • Tables – stores data • Forms – screen objects used to maintain, view, and print from a database • Reports – provides formatted output • Switchboards – a set of special forms used to provide controlled access to the data, forms, report and other objects in a database
Figures 1.10 and 1.11: Part and Order Forms
Figure 1.14: Main Data Switchboard
Figure 1.15: Advantages of Database Processing
Figure 1.16: Disadvantages of Database Processing
Introduction to Henry Books Database Case • Book store chain operated by Ray Henry • Henry decided to use database to gather and store information on: • Branches • Publishers • Authors • Books
Figure 1.20: Inventory Table Relates Branches to Books (con’t.)
Summary • Nondatabase approaches to management have problems with replication, redundancy, sharing, limited security, and size limitations • Entity - a person, place, object, event, or idea for which you want to store and process data • Attribute, field, or column - a characteristic or property of an entity • Relationship - an association between entities
Summary • One-to-many relationship - exists when • Each occurrence of the first entity is related to many occurrences of the second entity • Each occurrence of the second entity is related to only one occurrence of the first entity • Database is a structure that can store information about multiple types of entities • An entity-relationship (E-R) diagram represents a database pictorially • Database management system (DBMS) - a program, or a collection of programs, through which users interact with a database