©Brooks/Cole, 2003 Chapter 14 Databases. ©Brooks/Cole, 2003 Understand a DBMS and define its components. Understand the architecture of a DBMS and its.

Slides:



Advertisements
Similar presentations
14 Databases Foundations of Computer Science ã Cengage Learning.
Advertisements

The Hierarchical Model
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Introduction to Databases
Distributed databases
1 1 File Systems and Databases. 1 1 Introducing the Database 4Major Database Concepts u Data and information l Data - Raw facts l Information - Processed.
Chapter 2 Database System Concepts and Architecture
1 Chapter 2 Database Environment Transparencies © Pearson Education Limited 1995, 2005.
Databases. Database Information is not useful if not organized In database, data are organized in a way that people find meaningful and useful. Database.
Chapter 2 Database Environment.
File Systems and Databases
Chapter 2 Database Environment. Agenda Three-Level ANSI-SPARC Architecture Database Languages Data Models Functions of DBMS Components of DBMS Teleprocessing.
Geographic Information Systems
Data Management I DBMS Relational Systems. Overview u Introduction u DBMS –components –types u Relational Model –characteristics –implementation u Physical.
1 9 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 9 Database Management Approaches.
Chapter 4: Database Management. Databases Before the Use of Computers Data kept in books, ledgers, card files, folders, and file cabinets Long response.
“DOK 322 DBMS” Y.T. Database Design Hacettepe University Department of Information Management DOK 322: Database Management Systems.
1 Chapter 2 Database Environment. 2 Objectives of Three-Level Architecture u All users should be able to access same data u User’s view immune to changes.
The University of Akron Dept of Business Technology Computer Information Systems Database Management Approaches 2440: 180 Database Concepts Instructor:
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
SESSION 7 MANAGING DATA DATARESOURCES. File Organization Terms and Concepts Field: Group of words or a complete number Record: Group of related fields.
Lecture Two Database Environment Based on Chapter Two of this book:
DBMS1 Database Management System (DBMS) Introductory Concepts Week-1.
Chapter 4 Database Management Systems. Chapter 4Slide 2 What is a Database Management System (DBMS)?  Database An organized collection of related data.
1 Chapter 2 Database Environment. 2 Chapter 2 - Objectives u Purpose of three-level database architecture. u Contents of external, conceptual, and internal.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Management COP4540, SCS, FIU An Introduction to database system.
Distributed Databases Dr. Lee By Alex Genadinik. Distributed Databases? What is that!?? Distributed Database - a collection of multiple logically interrelated.
Database Environment 1.  Purpose of three-level database architecture.  Contents of external, conceptual, and internal levels.  Purpose of external/conceptual.
Concepts of Database Management, Fifth Edition
Database System Concepts and Architecture
6-1 DATABASE FUNDAMENTALS Information is everywhere in an organization Information is stored in databases –Database – maintains information about various.
Chapter 2 CIS Sungchul Hong
Database Architecture Introduction to Databases. The Nature of Data Un-structured Semi-structured Structured.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Database Environment Chapter 2 AIT632 Sungchul Hong.
Simple Database.
Database System Concepts and Architecture
14. Databases. DATABASEMANAGEMENTSYSTEMDATABASEMANAGEMENTSYSTEM 14.1.
7.1 Managing Data Resources Chapter 7 Essentials of Management Information Systems, 6e Chapter 7 Managing Data Resources © 2005 by Prentice Hall.
6 Chapter Databases and Information Management. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits.
Lecture2: Database Environment Prepared by L. Nouf Almujally & Aisha AlArfaj 1 Ref. Chapter2 College of Computer and Information Sciences - Information.
Storing Organizational Information - Databases
INSS 651 Chapter 1. Learning Objectives To develop the main database system concepts. To show the evolution of database systems from computer file systems.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
COMU114: Introduction to Database Development 1. Databases and Database Design.
Lecture # 3 & 4 Chapter # 2 Database System Concepts and Architecture Muhammad Emran Database Systems 1.
Database Systems DBMS Environment Data Abstraction.
Database Concepts. Data :Collection of facts in raw form. Information : Organized and Processed data is information. Database : A Collection of data files.
MANAGING DATA RESOURCES ~ pertemuan 7 ~ Oleh: Ir. Abdul Hayat, MTI.
Chapter 9 Database Systems Introduction to CS 1 st Semester, 2014 Sanghyun Park.
8/31/2012ISC329 Isabelle Bichindaritz1 Database Environment.
Creating and Maintaining Geographic Databases. Outline Definitions Characteristics of DBMS Types of database Relational model SQL Spatial databases.
Module 2: Database Environment
Chapter 9 Databases Objectives Understand a DBMS and define its components. Understand the architecture of a DBMS and its levels. Distinguish between.
Database Environment Session 2 Course Name: Database System Year : 2013.
1 Chapter 1 Introduction to Databases Transparencies.
IT Auditing & Assurance, 2e, Hall & Singleton Chapter 3: Data Management Systems.
Chapter 9 Database Systems © 2007 Pearson Addison-Wesley. All rights reserved.
Managing Data Resources. File Organization Terms and Concepts Bit: Smallest unit of data; binary digit (0,1) Byte: Group of bits that represents a single.
Lecture 10 Creating and Maintaining Geographic Databases Longley et al., Ch. 10, through section 10.4.
Mining real world data RDBMS and SQL. Index RDBMS introduction SQL (Structured Query language)
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Copyright (c) 2014 Pearson Education, Inc. Introduction to DBMS.
1 Chapter 2 Database Environment Pearson Education © 2009.
Database Environment Chapter 2. The Three-Level ANSI-SPARC Architecture External Level Conceptual Level Internal Level Physical Data.
Database.
Databases.
Presentation transcript:

©Brooks/Cole, 2003 Chapter 14 Databases

©Brooks/Cole, 2003 Understand a DBMS and define its components. Understand the architecture of a DBMS and its levels. Distinguish between different database models. Understand the concept of relational database operations on a relation. After reading this chapter, the reader should be able to: O BJECTIVES Use Structured Query Language (SQL) to define simple relations.

©Brooks/Cole, 2003 DATABASEMANAGEMENTSYSTEMDATABASEMANAGEMENTSYSTEM 14.1

Figure 14-1 DBMS components DBMS A database management system (DBMS) defines, creates, and maintains a database.

©Brooks/Cole, 2003 DBMS components Hardware The physical computer system that allows physical access to data Software The actual program that allows users to access, maintain, and update physical data Data: stored physically on the storage devices User: include end users and application programs Procedure A set of procedures (rules) that should be clearly defined and followed by the users of the database

©Brooks/Cole, 2003 ARCHITECTUREARCHITECTURE 14.2

Figure 14-2 Database architecture

©Brooks/Cole, 2003 Database architecture ANSI/SPARC Internal level The internal level determines where data are actually stored on the storage device Conceptual level The conceptual level defines the logical view of the data External level The external level interacts directly with the user

©Brooks/Cole, 2003 DATABASEMODELSDATABASEMODELS 14.3

Database models Hierarchical model: obsolete ( 過時的 ) Network model: obsolete ( 過時的 ) Relational model In a relational model, data are organized in two- dimensional tables called relations. Fig Discussed in Sections 14.4, 14.5

©Brooks/Cole, 2003 Figure 14-3 Hierarchical model

©Brooks/Cole, 2003 Figure 14-4 Network model: graph

©Brooks/Cole, 2003 Figure 14-5 Relational model

©Brooks/Cole, 2003 RELATIONALMODELRELATIONALMODEL 14.4

RDBMS RDBMS: the relational database management system (RDBMS) Relation: a relation is a 2D table has the following features: Name Attributes Tuples Figure 14-6

©Brooks/Cole, 2003 OPERATIONSONRELATIONSOPERATIONSONRELATIONS 14.5

Operations on relations Insert : unary operation Delete : unary operation Update : unary operation Select : unary operation Project : unary operation Join : binary operation Union : binary operation Intersection : binary operation Difference : binary operation

©Brooks/Cole, 2003 Figure 14-7 Insert operation Figure 14-8 Delete operation

©Brooks/Cole, 2003 Figure 14-9 Update operation Select operation Figure 14-10

©Brooks/Cole, 2003 Figure Project operation The project operation creates a relation in which each tuple has fewer attributes.

©Brooks/Cole, 2003 Figure Join operation

©Brooks/Cole, 2003 Figure Union operation

©Brooks/Cole, 2003 Figure Intersection operation

©Brooks/Cole, 2003 Figure Difference operation

©Brooks/Cole, 2003 STRUCTUREDQUERYLANGUAGESTRUCTUREDQUERYLANGUAGE 14.6 自己回去看即可!!

©Brooks/Cole, 2003 OTHERDATABASEMODELSOTHERDATABASEMODELS 14.7

Other database models Distributed databases The data are stored on several computers that communicate through the Internet. Fragmented ( 碎片 ) distributed databases Replicated ( 複製 ) distributed databases Object-oriented databases An object-oriented database tries to keep the advantages of the relational model and at the same time allows applications to access structured data.

©Brooks/Cole, 2003 Key terms Application program Cardinality Conceptual level Database DBMS Difference operation Distributed database End user External level Hardware Hierarchical model Internal level Intersection operation Join operation Network model Object-oriented database Procedure Project operation Relation RDBMS Relational model Select operation Software SQL Tuple Union operation Update operation