Chapter 4 Relational Databases

Slides:



Advertisements
Similar presentations
Relational Database and Data Modeling
Advertisements

Relational Databases Chapter 4.
Information Technology in Organizations
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Mgt 20600: IT Management & Applications Databases Tuesday April 4, 2006.
Relational Databases Chapter 4.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 4 Relational Databases.
Relational Databases Chapter 4.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Chapter 5 Database Processing.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
Database Technical Session By: Prof. Adarsh Patel.
STORING ORGANIZATIONAL INFORMATION— DATABASES CIS 429—Chapter 7.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Introduction to Database Systems
Concepts and Terminology Introduction to Database.
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
I Information Systems Technology Ross Malaga 4 "Part I Understanding Information Systems Technology" Copyright © 2005 Prentice Hall, Inc. 4-1 DATABASE.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Accounting Information Systems 9 th Edition Marshall.
Oleh Munawar Asikin. Principles of Information Systems, Seventh Edition 2  Database management system (DBMS): group of programs that manipulate database.
1.file. 2.database. 3.entity. 4.record. 5.attribute. When working with a database, a group of related fields comprises a(n)…
Chapter 4 Database Processing Copyright © 2013 Pearson Education, Inc. Publishing as Prentice Hall 4-1.
Lecture2: Database Environment Prepared by L. Nouf Almujally 1 Ref. Chapter2 Lecture2.
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
6.1 © 2010 by Prentice Hall 6 Chapter Foundations of Business Intelligence: Databases and Information Management.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
Programming Logic and Design Fourth Edition, Comprehensive Chapter 16 Using Relational Databases.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
CHAPTER 4 Relational Databases. Learning Objectives Explain the importance and advantages of databases Describe the difference between database systems.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Essentials of Systems Analysis and Design Fourth Edition Joseph S. Valacich Joey F.
Copyright © 2009 Pearson Education, Inc. Publishing as Prentice Hall Chapter 9 Designing Databases 9.1.
©2003 Prentice Hall Business Publishing, Accounting Information Systems, 9/e, Romney/Steinbart 4-1 Relational Databases.
6.1 © 2007 by Prentice Hall Chapter 6 (Laudon & Laudon) Foundations of Business Intelligence: Databases and Information Management.
Chapter 3: Relational Databases
IT 5433 LM3 Relational Data Model. Learning Objectives: List the 5 properties of relations List the properties of a candidate key, primary key and foreign.
Fundamental of Database Systems
Databases and DBMSs Todd S. Bacastow January
Database Management Systems
HAPTER 4 Relational Databases.
Relational Databases Chapter 4.
Client/Server Databases and the Oracle 10g Relational Database
Databases Chapter 16.
Information Systems Today: Managing in the Digital World
Introduction to Information Technology
Databases and Information Management
Chapter 9 Designing Databases
Introduction to Database Management System
Chapter 2 Database Environment Pearson Education © 2009.
Basic Concepts in Data Management
MANAGING DATA RESOURCES
Database.
Chapter 9 Designing Databases
Managing data Resources:
Relational Database Model
Data Model.
Databases and Information Management
Accounting Information Systems 9th Edition
Relational Databases Chapter 4.
Chapter 2 Database Environment Pearson Education © 2014.
Databases and Information Management
Chapter 2 Database Environment Pearson Education © 2009.
DATABASE Purpose of database
Chapter 2 Database Environment Pearson Education © 2009.
Chapter 4 Relational Databases
Presentation transcript:

Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall

Learning Objectives Explain the importance and advantages of databases Describe the difference between database systems and file-based legacy systems. Explain the difference between logical and physical views of a database. Explain fundamental concepts of database systems such as DBMS, schemas, the data dictionary, and DBMS languages. Describe what a relational database is and how it organizes data. Create a set of well-structured tables to store data in a relational database. Perform simple queries using the Microsoft Access database. Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall

Data Hierarchy Field Record File Database Attributes about an entity Related group of fields File Related group of records Database Related group of files Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Advantages of Database Systems Data Integration Files are logically combined and made accessible to various systems. Data Sharing With data in one place it is more easily accessed by authorized users. Minimizing Data Redundancy & Data Inconsistency Eliminates the same data being stored in multiple files, thus reducing inconsistency in multiple versions of the same data. Data Independence Data is separate from the programs that access it. Changes can be made to the data without necessitating a change in the programs and vice versa. Cross-Functional Analysis Relationships between data from various organizational departments can be more easily combines. Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Database Terminology Database Management System (DBMS) Interface between software applications and the data in files. Database Administrator (DBA) Person responsible for maintaining the database Data Dictionary Information about the structure of the database Field names, descriptions, uses Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Logical Vs. Physical Physical View Logical View Depends on explicitly knowing: How is the data actually arranged in a file Where is the data stored on the computer Logical View A Schema Separates storage of data from use of the data Unnecessary to explicitly know how and where data is stored. Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Schemas Describe the logical structure of a database Conceptual Level Organization wide view of the data External Level Individual Users view of the data Each view is a subschema Internal Level Describes how data are stored and accessed Description of: Records, Definitions, Addresses & Indexes Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

DBMS Languages Data Definition Language (DDL) Builds the data dictionary Creates the database Describes the subschema Specifies record and/or field security constraints Data Manipulation Language (DML) Changes the content in the database Updates, Insertions and Deletions Data Query Language (DQL) Enable the retrieval, sorting, & display of data from the database Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Relational Database Relational Data model represents the conceptual and external level schemas as if data are stored in tables Table Each Row, a Tuple, contains data about one instance of an entity This is equivalent to a Record Each Column, contains data about one attribute of an entity This is equivalent to a Field Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

A Relational Table Row (Record) Column (Field) Each row contains multiple attributes describing an instance of the entity. In this case inventory. Same type of data Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Attributes Primary Key Foreign Key An attribute or combination of attributes that can be used to Uniquely identify a specific row(record) in a table. Foreign Key An attribute in one table that is a Primary key in another table. Used to link the two tables. Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Database Design Errors If database is not designed properly data errors can occur: Update Anomaly Changes to existing data are not correctly recorded Due to multiple records with the same data attributes Insert Anomaly Unable to add a records to the database Delete Anomaly Removing a record also removes unintended data from the database Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Design Requirements for Relational Database Every column must be single valued. Primary keys must contain data (Not Null). Foreign Keys must contain the same data as the primary key in another table. All other attributes must identify a characteristic of the table identified by the primary key. Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Normalizing Relational Databases Initially one table is used for all the data in a database Following rules, the table is decomposed into multiple tables related by: Primary Key – Foreign key integration Decomposed set of tables are in third normal form (3NF) Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Microsoft Access Query#1 Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Microsoft Access Query#2 Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Microsoft Access Query#3 Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Microsoft Access Query#4 Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall

Microsoft Access Query#5 Copyright 2012 © Pearson Education, Inc. publishing as Prentice Hall