Understanding Relational Database Concepts Professor Larry Heimann Carnegie Mellon University 88-272 Lecture Notes — Fall 1999.

Slides:



Advertisements
Similar presentations
The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Advertisements

Introduction to Databases
Management Information Systems, Sixth Edition
Concepts of Database Management Sixth Edition
Chapter 3 Database Management
Chapter Physical Database Design Methodology Software & Hardware Mapping Logical Design to DBMS Physical Implementation Security Implementation Monitoring.
The Relational Database Model:
3-1 Chapter 3 Data and Knowledge Management
Database Design Chapter 3.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
Concepts of Database Management Seventh Edition
1 Chapter 2 Reviewing Tables and Queries. 2 Chapter Objectives Identify the steps required to develop an Access application Specify the characteristics.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Phil Brewster  One of the first steps – identify the proper data types  Decide how data (in columns) should be stored and used.
IST Databases and DBMSs Todd S. Bacastow January 2005.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Database Design Concepts
Database Integrity and Security HAP 709 – Healthcare Databases George Mason University Janusz Wojtusiak, PhD Fall, 2010.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Chapters 17 & 18 Physical Database Design Methodology.
RAJIKA TANDON DATABASES CSE 781 – Database Management Systems Instructor: Dr. A. Goel.
DATABASE. A database is collection of information that is organized so that it can easily be accessed, managed and updated. It is also the collection.
Chapter 1 Overview of Database Concepts Oracle 10g: SQL
1 Chapter 1 Overview of Database Concepts. 2 Chapter Objectives Identify the purpose of a database management system (DBMS) Distinguish a field from a.
Management Information Systems By Effy Oz & Andy Jones
Concepts and Terminology Introduction to Database.
Microsoft Access 2003 Define some key Access terminology: Field – A single characteristic or attribute of a person, place, object, event, or idea. Record.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
MIS 301 Information Systems in Organizations Dave Salisbury ( )
Lecture 2 An Overview of Relational Database IST 318 – DB Admin.
RELATIONSHIPS Generally there are two main database types: flat-file and relational.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
ECE 8443 – Pattern Recognition ECE 3822 – Software Tools For Engineers Topics: Definitions and Terminology Abstraction Schema Tables Types of Databases.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
MIS 327 Database Management system 1 MIS 327: DBMS Dr. Monther Tarawneh Dr. Monther Tarawneh Week 2: Basic Concepts.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Chapter 1Introduction to Oracle9i: SQL1 Chapter 1 Overview of Database Concepts.
Relational Database. Database Management System (DBMS)
Visual C# 2012 How to Program © by Pearson Education, Inc. All Rights Reserved.
Introduction to Database using Microsoft Access 2013 Part 7 November 19, 2014.
The Relational Model J.G. Zheng Jan 2010 CIS 8040 Database Management Systems.
Access Review. Access Access is a database application A database is a collection of records and files organized for a particular purpose Access supports.
1 The Information School of the University of Washington Dec 1fit advdatabases © 2006 University of Washington Advanced Database Concepts INFO/CSE.
DAT602 Database Application Development Lecture 2 Review of Relational Database.
+ Information Systems and Databases 2.2 Organisation.
Relational Database. I. Relational Database 1. Introduction 2. Database Models 3. Relational Database 4. Entity-Relationship Models 5. RDB Design Principles.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Relational Theory and Design
File and Database Design Class 22. File and database design: 1. Choosing the storage format for each attribute from the logical data model. 2. Grouping.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
Lection №4 Development of the Relational Databases.
BSA206 Database Management Systems Lecture 2: Introduction to Oracle / Overview of Database Concepts.
Flat Files Relational Databases
Principles of Database Design, Part I AIMS 2710 R. Nakatsu.
Chapter 13.3: Databases Invitation to Computer Science, Java Version, Second Edition.
Date: 13/03/2015 Training Reference: 2015 GIS_01 Document Reference: 2015GIS_01/PPT/L4 Issue: 2015/L4/1/V1 Addis Ababa, Ethiopia GIS Data Base Management.
Week 2 Lecture The Relational Database Model Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
September 2000C.Watters1 Data & Database Management Systems (DBMS) ECMM6010.
Rationale Databases are an integral part of an organization. Aspiring Database Developers should be able to efficiently design and implement databases.
1 Section 1 - Introduction to SQL u SQL is an abbreviation for Structured Query Language. u It is generally pronounced “Sequel” u SQL is a unified language.
XP Chapter 1 Succeeding in Business with Microsoft Office Access 2003: A Problem-Solving Approach 1 Level 2 Objectives: Understanding and Creating Table.
 2012 Pearson Education, Inc. All rights reserved.
CIS 207 The Relational Database Model
Chapter 4 Relational Databases
Databases 1.
Presentation transcript:

Understanding Relational Database Concepts Professor Larry Heimann Carnegie Mellon University Lecture Notes — Fall 1999

Today’s Hidden Agenda Announcements and such Why Relational Databases Types of Relations Keys and Key Rings Integrity in Relational Databases Types of Data

Now Opening: Now Opening: Monadnock Book Store What functions does the Monadnock Book Store need to be a successful venture? Advantages to using a computer for record keeping

What Type of Database for MBS? Flat file database is easy to understand and set-up -- even for the computer novices. What would a flat file database look like for MBS? What are some of the problems with using a flat-file database for MBS operations?

A Possible Flat File Database for MBS

An Alternative: Relational Databases Relational databases consist of a series of data tables linked together so that data can later be combined and extracted as needed. Some terminology –table / file –column / field –row / record AutIDAutFirstNameAutLastName 0150LarryHeimann 0151CharlesHummel 0152MichaelBehe 0153MarcOrkand tblAuthor

Codd’s Rule…Condensed Version represent all information in the database as tables keep the logical representation of data independent from its physical storage characteristics use SQL for structuring, querying, and changing information in the database support the main relational operations (selection, projection, join) and set up operations such as union, intersection, difference, and division support views, which allow the user to specify alternative ways of looking at data in tables provide a method for differentiating between unknown values (nulls) and zero or blank support mechanisms for integrity, authorization, transactions, and recovery

A Glimpse at the MBS RDB AutID AutFirstName AutLastName AutBioSketch AutInterview AutID ISBN EditionNumber CopyrightYear ISBN PubID RetailPrice Rating CoverPicture PubID PubName PubAddress PubCity PubState PubZIP PubPhone PubFax SalesID ISBN SalesQuantity SalesID SalesDate CustID ShipDate CustID CustFirstName CustLastName CustAddress CustCity CustState CustZIP CustPhone Cust CreditCardType CreditCardNum CardExp tblCustomer tblBook tblSaleDetail tblBookAuthor tblAuthor tblPublisher tblSales 1 ∞ ∞ 1 1 ∞ 1 ∞ ∞ ∞ 1 1

Relations in the MBS Database One-to-One Relations One-to-Many Relations Many-to-Many Relations These relationships are represented different ways depending on the type of model being used.

Keys in a Relational Database How can we be sure we are accessing the correct records? Primary Keys Composite Keys Foreign Keys

Integrity -- Important in People and in Databases 1st Type: Entity Integrity 2nd Type: Domain Integrity 3rd Type: Referential Integrity

Potential Problem Areas Bad input data Operator error Mechanical failure Malice Data Redundancy

What Kind of Data Can We Store? Exact numerics Approximate numerics character strings bit strings datetimes intervals