Chapter 14: Databases And Database Management Systems

3y ago
78 Views
32 Downloads
1.54 MB
59 Pages
Last View : 1m ago
Last Download : 3m ago
Upload by : Albert Barnett
Transcription

15th EditionUnderstanding ComputersToday and TomorrowComprehensiveChapter 14:Databases and DatabaseManagement SystemsDeborah MorleyCharles S. ParkerCopyright 2015 Cengage Learning

Learning Objectives Explain what a database is, including common databaseterminology, and list some of the advantages anddisadvantages of using databases. Discuss some basic concepts and characteristics of data, suchas data hierarchy, entity relationships, and data definition. Describe the importance of data integrity, security, andprivacy and how they affect database design. Identify some basic database classifications and discuss theirdifferences.Understanding Computers: Today and Tomorrow, 15th Edition2

Learning Objectives4. List the most common database models and discuss howthey are used today.5. Understand how a relational database is designed, created,used, and maintained.6. Describe some ways databases are used on the Web.Understanding Computers: Today and Tomorrow, 15th Edition3

Overview This chapter covers:– What a database is, the individuals who use them, andhow databases evolved– Important database concepts and vocabulary– Database classifications and models– The relational database– How databases are used on the WebUnderstanding Computers: Today and Tomorrow, 15th Edition4

What Is a Database? Database– A collection of related data stored in a manner thatenables information to be retrieved as needed Database Management System (DBMS)– Used to create, maintain, and access databases– Database engine The part of the program that actually stores andretrieves data– Microsoft Access, OpenOffice Base, Corel Paradox, OracleDatabase, etc.Understanding Computers: Today and Tomorrow, 15th Edition5

What Is a Database? A database typically consists of:– Tables Collection of related records– Fields (columns) Single category of data to be stored in a database(name, telephone number, etc.)– Records (rows) Collection of related fields in a database (all the fieldsfor one customer, for example)Understanding Computers: Today and Tomorrow, 15th Edition6

What Is a Database? A Simple Relational Database ExampleUnderstanding Computers: Today and Tomorrow, 15th Edition7

What is a Database?– Primary Key Field that uniquely identifies the records in a table Field in a table that is used to relate that table to othertablesUnderstanding Computers: Today and Tomorrow, 15th Edition8

What Is a Database? Individuals Involved with a Database Management System– Database Designers Design the database– Database Developers Create the database– Database Programmers Write the programs needed to access the database ortie the database to other programsUnderstanding Computers: Today and Tomorrow, 15th Edition9

What Is a Database?– Database Administrators Responsible for managing the databases within anorganization– Users Individuals who enter data, update data, and retrieveinformation from the databaseUnderstanding Computers: Today and Tomorrow, 15th Edition10

What Is a Database? The Evolution of DatabasesUnderstanding Computers: Today and Tomorrow, 15th Edition11

What Is a Database? Advantages and Disadvantages of the DBMS Approach– Advantages Low level of redundancy– Faster response time– Lower storage requirements– Easier to secure– Increased data accuracy– Disadvantages Increased vulnerability (backup is essential)Understanding Computers: Today and Tomorrow, 15th Edition12

Inside the Industry BoxFile Management Systems– Tables arenot relatedso moretimeconsumingand moreredundancyUnderstanding Computers: Today and Tomorrow, 15th Edition13

Data Concepts and Characteristics Data Hierarchy– Fields/columns Hold single pieces of data– Records/rows Groups of related fields– Tables Collection of related records– Database Contains a group of related tablesUnderstanding Computers: Today and Tomorrow, 15th Edition14

Data Concepts and Characteristics Entities and Entity Relationships– Entity A person, object, or event of importance to theorganization Entities that the organization wants to store data abouttypically becomes a database table– Attributes Characteristics of an entity Typically become fields in the entity’s database table– Relationship An association between two or more entitiesUnderstanding Computers: Today and Tomorrow, 15th Edition15

Data Concepts and Characteristics– One to One (1:1) Entity Relationships One entity is related to only one other entity of a particulartype Not a common type of relationship– One to Many (O:M) Entity Relationship Most common type of relationship One entity can be related to more than one other entity– A supplier can supply more than one product to acompany– Many to Many (M:M) Entity Relationships One entity can be related to more than one other entity, andthose entities can be related to multiple entities of the sametype as the original entityUnderstanding Computers: Today and Tomorrow, 15th Edition16

Data Concepts and Characteristics Data Definition– The process of describing the properties of data to beincluded in a database table– During data definition, each field is assigned: Name (must be unique within the table) Data type (such as Text, Number, Currency, Date/Time) Description (optional description of the field) Properties (field size, format of the field, allowablerange, if field is required, etc.)– Finished specifications for a table become the tablestructureUnderstanding Computers: Today and Tomorrow, 15th Edition17

Data Concepts and CharacteristicsUnderstanding Computers: Today and Tomorrow, 15th Edition18

Data Concepts and Characteristics The Data Dictionary– Contains all data definitions in a database, including: Table structures Security information (passwords, etc.) Relationships between the tables in the database Basic information about each table, such as the currentnumber of records– Does not contain any of the data in the tables– Does contain metadata, which is information about thedatabase tables– Ensures that data being entered into the database doesnot violate any specified criteriaUnderstanding Computers: Today and Tomorrow, 15th Edition19

Data Integrity, Security, and Privacy Data Integrity– Accuracy of Data Quality of data entered determines the quality ofgenerated information– Data Validation Process of ensuring that data entered into the databaseis valid Record validation rules– Checks all fields before changes to a record aresaved Can be enforced on a per transaction basis so the entiretransaction will fail if one part is invalidUnderstanding Computers: Today and Tomorrow, 15th Edition20

Data Integrity, Security, and Privacy– Database Locking Prevents two individuals from changing the same dataat the same timeUnderstanding Computers: Today and Tomorrow, 15th Edition21

Data Integrity, Security, and Privacy Data Security– Protects data against destruction and misuse– Protects against unauthorized access to and unauthorizeduse of a database– Database activity monitoring programs can be used todetect possible intrusions and risks– Prevents data loss– Should include strict backup and disaster-recoveryprocedures (disaster-recovery plan)– Should be used with both in-house and cloud databasesUnderstanding Computers: Today and Tomorrow, 15th Edition22

Data Integrity, Security, and PrivacyUnderstanding Computers: Today and Tomorrow, 15th Edition23

Data Integrity, Security, and Privacy– Data Privacy Growing concern because of the vast amounts ofpersonal data stored in databases today Many states require businesses to notify customerswhen their personal data has been compromised Data breaches can be costly– One estimate is 200 per breached recordUnderstanding Computers: Today and Tomorrow, 15th Edition24

Data Organization Data Organization– Arranging data for efficient retrieval– Indexed organization Uses an index to keep track of where data is stored in adatabase Direct Organization– Uses hashing algorithms to specify the exact storagelocation– Algorithms should bedesigned to limit collisions– Some systems use a combination of both indexed anddirect organizationUnderstanding Computers: Today and Tomorrow, 15th Edition25

Data OrganizationUnderstanding Computers: Today and Tomorrow, 15th Edition26

Data OrganizationUnderstanding Computers: Today and Tomorrow, 15th Edition27

How It Works BoxColumn Databases– Stores data by columnsinstead of rows– Improves performanceby minimizing the timeneeded to read thedisk– Used with datawarehouses and otherbig data applicationsUnderstanding Computers: Today and Tomorrow, 15th Edition28

Quick Quiz1. A column in a database in which customer names are stored wouldbe referred to as a .a. fieldb. recordc. table2. True or False: Data validation procedures are used to ensure thatdata entered into a database matches the specified type, format,and allowable value.3. The contains metadata about the database tables in adatabase.Answers:1) a; 2) True; 3) data dictionaryUnderstanding Computers: Today and Tomorrow, 15th Edition29

Database Classifications Single-User vs. Multiuser Database Systems– Single-User Database System Located on a single computer Designed to be accessed by one user Widely used for personal applications and very smallbusinesses– Multiuser Database System Designed to be accessed by multiple users (mostbusiness databases today)Understanding Computers: Today and Tomorrow, 15th Edition30

Database Classifications Client-Server and N-Tier Database Systems– Client-Server Database Systems Has both clients (front end) and at least one databaseserver (back end)Understanding Computers: Today and Tomorrow, 15th Edition31

Database Classifications– N-Tier Database System Has more than two tiers Additional tiers typicallycontain software referred to asmiddleware Allows program code to beseparate from the database Code can be divided into anynumber of logical componentsUnderstanding Computers: Today and Tomorrow, 15th Edition32

Database Classifications Centralized vs. Distributed Database Systems– Centralized Database System Database is located on a single computer, such as aserver or mainframe– Distributed Database System Data is physically divided among several computersconnected by a network, but the database logicallylooks like it is a single databaseUnderstanding Computers: Today and Tomorrow, 15th Edition33

Database ClassificationsUnderstanding Computers: Today and Tomorrow, 15th Edition34

Database Classifications Disk-Based vs. In-Memory Database Systems– Disk-Based Systems Data is stored on hard drives– In-Memory Databases (IMDBs) Data is stored in main memory Dramatically faster than disk-based databases Good backup procedures are essential Used both in high-end systems where performance iscrucial and in small-footprint, embedded applicationsUnderstanding Computers: Today and Tomorrow, 15th Edition35

Quick Quiz1. Which type of database system is beginning to be used inhigh-end systems where performance is crucial?a. In-memory databasesb. Disk-based databasesc. Single-user databases2. True or False: With the n-tier database model, there is at leastone middle piece of software between the client and theserver.3. With a(n) database system, the databases usedby the system are all located on a single computer.Answers:1) a; 2) True; 3) centralizedUnderstanding Computers: Today and Tomorrow, 15th Edition36

Database Models The Hierarchical and Network Database Models– Hierarchical Databases Organizes data in a tree structure Typically a one-to-many relationship between dataentities– Network Databases Allow both one-to-many and many-to-manyrelationships between data elements– Most databases today are neither hierarchical or networkmodelsUnderstanding Computers: Today and Tomorrow, 15th Edition37

The Relational Database Model(RDBMS) The Relational Database Model (RDBMS)– Data is organized in tables related by common fields– Most widely used database model today– Designing a Relational Database Identify the purpose of the database Determine the tables and fields Assign the fields to a table and reorganize as needed tominimize redundancy (normalization – most databasesstop at 3NF) Finalize the structure (primary keys, field properties,etc.)Understanding Computers: Today and Tomorrow, 15th Edition38

The Relational Database Model(RDBMS)Understanding Computers: Today and Tomorrow, 15th Edition39

The Relational Database Model(RDBMS) Creating a Relational Database– Creating the Tables Each table is created using the table structuredeveloped during the database design process– In Access, can use Design view or Datasheet view– Entering and Editing Data Existing data can be migrated to the new database New data can be added via a form or Datasheet view– In either case, the same data is being manipulatedUnderstanding Computers: Today and Tomorrow, 15th Edition40

Database ModelsUnderstanding Computers: Today and Tomorrow, 15th Edition41

Database ModelsUnderstanding Computers: Today and Tomorrow, 15th Edition42

The Relational Database Model(RDBMS)– Relating Tables Once all tables have been created, they can be relatedto one another using their primary keysUnderstanding Computers: Today and Tomorrow, 15th Edition43

The Relational Database Model(RDBMS) Retrieving Information from a Relational Database– Query A request to see information from a database thatmatches specific criteria Every DBMS provides tools users can use to query thedatabase for information Can also write in structured query language (SQL) Must be designed to extract information as efficientlyas possible Poorly written queries can impact the overallperformance of the systemUnderstanding Computers: Today and Tomorrow, 15th Edition44

The Relational Database Model(RDBMS)Understanding Computers: Today and Tomorrow, 15th Edition45

The Relational Database Model(RDBMS)– Reports Formatted way of looking at a database table or theresults of a query Can pull data from more than one table Many programs have wizards or other tools to make iteasy to create a report Can be modified and customized using the Design view Reports in Microsoft Access are saved as objects in thedatabase fileUnderstanding Computers: Today and Tomorrow, 15th Edition46

The Relational Database Model(RDBMS)Understanding Computers: Today and Tomorrow, 15th Edition47

The Relational Database Model(RDBMS) Maintaining a Relational Database– Table structures can be modified when needed– Other possible modifications: Adding new indexes to speed up queries Deleting obsolete data Upgrading database software, installing patches Repairing/restoring data that has become corrupt Continuing to evaluate and improve securityUnderstanding Computers: Today and Tomorrow, 15th Edition48

The Object-Oriented Database Model The Object-Oriented Database Model– Object-Oriented Database Management System(OODBMS) Database system in which multiple types of data arestored as objects along with their related code Can contain virtually any type of data (video clip, textwith music, etc.) along with the methods to be usedwith that data Objects can be retrieved using queries (object querylanguage or OQL) Objects can be reused in other applications to createnew applications quicklyUnderstanding Computers: Today and Tomorrow, 15th Edition49

Trend BoxLaw Enforcement Databases– Have been used for years but new database are nowemerging that hold non-traditional data like photos andbiometric data Next Generation Identification (NGI)– Includes AFIT to store andmatch fingerprints– Includes support for photosand face-matching– Future improvements includesupport for voice, iris, DNA,palm prints, etc.Understanding Computers: Today and Tomorrow, 15th Edition50

Hybrid Database Models Hybrid Database Models– A combination of two or more database types or models Hybrid XML/RelationalDatabase– Can store andretrieve both XML dataand relational dataUnderstanding Computers: Today and Tomorrow, 15th Edition51

Multidimensional Databases (MDDB) Multidimensional Databases (MDDB)– Designed to be used with data warehousing– Often used in conjunction with Online AnalyticalProcessing (OLAP) MOLAP (Multidimensional OLAP)– Data is stored in single structures called data cubes ROLAP (Relational OLAP)– Data is stored in an existing relational databaseusing tables to store the summary information HOLAP (Hybrid OLAP)– Combination of MOLAP and ROLAP technologiesUnderstanding Computers: Today and Tomorrow, 15th Edition52

Cloud Databases Typically hosted on a cloud database provider’s servers that isaccessible to users via the Web Examples of Cloud Databases in Use– Information retrieval Data to be accessed and displayed on a Web page isoften stored in a database, i.e, Search sites– Support and facilitate e-commerce Display product information, pricing, customerinformation, shopping cart content, etc.– Cloud databases allow Web pages to be dynamic WebpagesUnderstanding Computers: Today and Tomorrow, 15th Edition53

Technology and You BoxCloud Databases– Use growing rapidly– Typically built using a cloudprovider (Windows Azure,Amazon SimpleDB, orGoogle Cloud SQL)– Requires less in-househardware and maintenance– Individuals can create viaMicrosoft Access web appsUnderstanding Computers: Today and Tomorrow, 15th Edition54

Cloud Databases How Cloud Databases Work– Visitor makes request by Filling out a Web page form Selecting an option from a menu displayed on a Webpage form– Web server converts the request into a database query,passes it onto the database server, and then sends theresults back to the visitorUnderstanding Computers: Today and Tomorrow, 15th Edition55

Cloud Databases– Middleware Software used to connect two otherwise separateapplications, such as a Web server and a databasemanagement system Commonly written as scripts Common languages include– JavaScript– VBScript– CGI Scripts– Active Server Pages (ASPs)– PHP ScriptsUnderstanding Computers: Today and Tomorrow, 15th Edition56

Cloud DatabasesUnderstanding Computers: Today and Tomorrow, 15th Edition57

Quick Quiz1. Which of the following is the most widely used type of databasetoday?a. Networkb. Relationalc. Object-oriented2. True or False: Databases are often used in conjunction with dynamicWeb pages.3. A(n) is used to extract specific information from adatabase by specifying particular conditions about the data to beretrieved.Answers:1) b; 2) True; 3) queryUnderstanding Computers: Today and Tomorrow, 15th Edition58

Summary What Is a Database?Data Concepts and CharacteristicsDatabase ClassificationsDatabase ModelsCloud DatabasesUnderstanding Computers: Today and Tomorrow, 15th Edition59

Chapter 14: Databases and Database Management Systems . Learning Objectives Explain what a database is, including common database terminology, and list some of the advantages and disadvantages of using databases. Discuss some basic concepts and characteristics of data, such as data hierarchy, entity relationships, and data definition. .

Related Documents:

Part One: Heir of Ash Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26 Chapter 27 Chapter 28 Chapter 29 Chapter 30 .

TO KILL A MOCKINGBIRD. Contents Dedication Epigraph Part One Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 Part Two Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18. Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 Chapter 24 Chapter 25 Chapter 26

Control Techniques, Database Recovery Techniques, Object and Object-Relational Databases; Database Security and Authorization. Enhanced Data Models: Temporal Database Concepts, Multimedia Databases, Deductive Databases, XML and Internet Databases; Mobile Databases, Geographic Information Systems, Genome Data Management, Distributed Databases .

DEDICATION PART ONE Chapter 1 Chapter 2 Chapter 3 Chapter 4 Chapter 5 Chapter 6 Chapter 7 Chapter 8 Chapter 9 Chapter 10 Chapter 11 PART TWO Chapter 12 Chapter 13 Chapter 14 Chapter 15 Chapter 16 Chapter 17 Chapter 18 Chapter 19 Chapter 20 Chapter 21 Chapter 22 Chapter 23 .

14 databases History 183 databases ProQuest Primary Sources available for: Introduction ProQuest Historical Primary Sources Support Research, Teaching and Learning. Faculty and students are using a variety of resources in research, teaching and learning – including primary sources,

Examples. 6.2 Primary sequence databases 6.2.1 Introduction In the early 1980’s, several primary database projects evolved in different parts of the world (see table 6.1). There are two main classes of databases:DNA (nucleotide) databases and protein databases. The primary sequence d

Distributed databases allow more concurrent database requests than single-server databases. Gianluca Quercini Introduction to Databases Master DSBA 2020 { 20219/58. . 14 Administration 300,000 25 Education 150,000 62 Finance 600,000 45 Human Resources 150,000 Department B C codeD nameD budget

American Revolution Activity Book This Activity Book contains activity pages that accompany the lessons from the Unit 6 Teacher Guide. The activity pages are organized and numbered according to the lesson number and the order in which they are used within the lesson. For example, if there are two activity pages for Lesson 4, the first will be numbered 4.1 and the second 4.2. The Activity Book .