The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:

Slides:



Advertisements
Similar presentations
Three-Step Database Design
Advertisements

The Relational Model and Relational Algebra Nothing is so practical as a good theory Kurt Lewin, 1945.
Relational Database. Relational database: a set of relations Relation: made up of 2 parts: − Schema : specifies the name of relations, plus name and type.
The Relational Model. Introduction Introduced by Ted Codd at IBM Research in 1970 The relational model represents data in the form of table. Main concept.
Concepts of Database Management Seventh Edition
Concepts of Database Management Sixth Edition
Concepts of Database Management Seventh Edition
The Relational Database Model
Relational Databases Chapter 4.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
ETEC 100 Information Technology
Concepts of Database Management Sixth Edition
SPRING 2004CENG 3521 The Relational Model Chapter 3.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
1 Relational Model. 2 Relational Database: Definitions  Relational database: a set of relations  Relation: made up of 2 parts: – Instance : a table,
1 Minggu 2, Pertemuan 3 The Relational Model Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Thomas Connolly and Carolyn Begg’s
Data at the Core of the Enterprise. Objectives  Define of database systems  Introduce data modeling and SQL  Discuss emerging requirements of database.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Architecture The Relational Database Model.
PHASE 3: SYSTEMS DESIGN Chapter 7 Data Design.
Concepts of Database Management, Fifth Edition
Lecture 2 The Relational Model. Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical relations.
Chapter 4 The Relational Model Pearson Education © 2014.
© Pearson Education Limited, Chapter 2 The Relational Model Transparencies.
Relational Model Session 6 Course Name: Database System Year : 2012.
Chapter 4 The Relational Model.
Chapter 3 The Relational Model Transparencies Last Updated: Pebruari 2011 By M. Arief
Data at the Core of the Enterprise. Objectives  Define of database systems.  Introduce data modeling and SQL.  Discuss emerging requirements of database.
Relational Data Model, R. Ramakrishnan and J. Gehrke with Dr. Eick’s additions 1 The Relational Model Chapter 3.
CHAPTER 8: MANAGING DATA RESOURCES. File Organization Terms Field: group of characters that represent something Record: group of related fields File:
Chapter 3 The Relational Model. 2 Chapter 3 - Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Concepts of Database Management Seventh Edition
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
1 The Relational Model. 2 Why Study the Relational Model? v Most widely used model. – Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. v “Legacy.
FALL 2004CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
1.1 CAS CS 460/660 Relational Model. 1.2 Review E/R Model: Entities, relationships, attributes Cardinalities: 1:1, 1:n, m:1, m:n Keys: superkeys, candidate.
Concepts of Database Management Sixth Edition Chapter 6 Database Design 2: Design Method.
Relational Database. Database Management System (DBMS)
DataBase Management System What is DBMS Purpose of DBMS Data Abstraction Data Definition Language Data Manipulation Language Data Models Data Keys Relationships.
1 Database & DBMS The data that goes into transaction processing systems (TPS), also goes to a database to be stored and processed later by decision support.
Announcements Reading for Monday –4.6 Homework 3 – Due 9/29.
12/2/2015CPSC , CPSC , Lecture 41 Relational Model.
Database Management Supplement 1. 2 I. The Hierarchy of Data Database File (Entity, Table) Record (info for a specific entity, Row) Field (Attribute,
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
1 2 Concepts of Database Management, 4 th Edition, Pratt & Adamski Chapter 2 The Relational Model 1: Introduction, QBE, and Relational Algebra.
The Relational Model. 2 Relational Model Terminology u A relation is a table with columns and rows. –Only applies to logical structure of the database,
1 6 Concepts of Database Management, 5 th Edition, Pratt & Adamski Chapter 6 Database Design 2: Design Methodology Spring 2006.
Concepts of Database Management, Fifth Edition Chapter 6: Database Design 2: Design Methodology.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
Microsoft Access 2010 Chapter 11 Database Design.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Week 2 Lecture The Relational Database Model Samuel ConnSamuel Conn, Faculty Suggestions for using the Lecture Slides.
Chapter 4 The Relational Model Pearson Education © 2009.
Faeez, Franz & Syamim.   Database – collection of persistent data  Database Management System (DBMS) – software system that supports creation, population,
Chapter 3 The Relational Model. Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. “Legacy.
Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Relational Model Chapter 3.
1 CS122A: Introduction to Data Management Lecture #4 (E-R  Relational Translation) Instructor: Chen Li.
CENG 351 File Structures and Data Management1 Relational Model Chapter 3.
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.
Chapter 4 Relational Databases
Translation of ER-diagram into Relational Schema
Databases and Information Management
Chapter 4 The Relational Model Pearson Education © 2009.
Databases and Information Management
Design tools and techniques for a relational database system
Presentation transcript:

The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor: Enoch E. Damson

2The Relational Model: Concepts The Relational Model E. F. Codd of IBM originated the relational model approach in the 1970s E. F. Codd of IBM originated the relational model approach in the 1970s Has been the predominant method for data storage Has been the predominant method for data storage The central data description construct is a table (called “relation” by Dr. Codd) The central data description construct is a table (called “relation” by Dr. Codd)

3The Relational Model: Concepts Advantages of the Relational Model Logical and physical characteristics of a database are separated Logical and physical characteristics of a database are separated Model is simple and easy to understand Model is simple and easy to understand Powerful operators to enable complex operations to be executed with simple commands Powerful operators to enable complex operations to be executed with simple commands Design of Database is simple Design of Database is simple

4The Relational Model: Concepts Relational Databases Collection of relations (tables or entities) Collection of relations (tables or entities) Records (rows or tuples) contain data about entities Records (rows or tuples) contain data about entities Attributes (columns or fields) contain data about properties of the entities Attributes (columns or fields) contain data about properties of the entities Relationships are common columns in two or more tables Relationships are common columns in two or more tables Order of rows and columns is unimportant Order of rows and columns is unimportant Repeating groups are not permitted Repeating groups are not permitted Entries with repeating groups are unnormalized Entries with repeating groups are unnormalized

5The Relational Model: Concepts Relation Two dimensional table in which: Two dimensional table in which: Entries are single-valued Entries are single-valued Each column (field or attribute) has a distinct name Each column (field or attribute) has a distinct name All values in a column represent the same attribute All values in a column represent the same attribute Order of columns is immaterial Order of columns is immaterial Each row (record or tuple) is distinct Each row (record or tuple) is distinct Order of rows is immaterial Order of rows is immaterial

6The Relational Model: Concepts Schema Database structure representation Database structure representation Description of a database (in terms of a data model) Description of a database (in terms of a data model) Relational model schema for a relation specifies: Relational model schema for a relation specifies: Name of the relation Name of the relation Name of each field (attribute or column) Name of each field (attribute or column) Type of each field Type of each field

7The Relational Model: Concepts Schema Representation Write the name of the table followed by a list of all columns (and column types) within parentheses Write the name of the table followed by a list of all columns (and column types) within parentheses E.g., Students (sid: char, name: char, login: char, age: integer, gpa: numeric) E.g., Students (sid: char, name: char, login: char, age: integer, gpa: numeric) Underline unique key (primary key) Underline unique key (primary key) Each table should appear on its own line Each table should appear on its own line Use the notation, tablename.columnname, with duplicate column names within a database Use the notation, tablename.columnname, with duplicate column names within a database Using this combination qualifies column names Using this combination qualifies column names

8The Relational Model: Concepts View (Subschema) Subset of a schema Subset of a schema Benefits of views include: Benefits of views include: Making databases simpler Making databases simpler Securing information Securing information

9The Relational Model: Concepts Other Relational Model Terminologies… Normalization – disallowing repeated groups in a table Normalization – disallowing repeated groups in a table Normalized relation – has no repeating groups Normalized relation – has no repeating groups Unnormalized relation – allows repeated groups Unnormalized relation – allows repeated groups Query – an approach that helps obtain information from a database Query – an approach that helps obtain information from a database Data Definition Languages (DDLs) - approaches to data definition Data Definition Languages (DDLs) - approaches to data definition E.g. Structured Query Language (SQL) E.g. Structured Query Language (SQL) Data Manipulation Languages (DMLs) - approaches to data manipulation Data Manipulation Languages (DMLs) - approaches to data manipulation E.g. Query-by-Example (QBE), Relational Algebra, SQL and Relational Calculus E.g. Query-by-Example (QBE), Relational Algebra, SQL and Relational Calculus Structured Query Language (SQL) – the language that defines and manipulates relational databases Structured Query Language (SQL) – the language that defines and manipulates relational databases Entity-Relationship Diagram (ERD) - diagram that visually represents database structure Entity-Relationship Diagram (ERD) - diagram that visually represents database structure

10The Relational Model: Concepts Other Relational Model Terminologies Integrity Constraint – rules applied to a DBMS to perform specific functions on a database Integrity Constraint – rules applied to a DBMS to perform specific functions on a database There are several types of key constraints: There are several types of key constraints: Primary key Primary key Composite key Composite key Candidate keys Candidate keys Surrogate key (synthetic key) Surrogate key (synthetic key) Foreign key Foreign key

11The Relational Model: Concepts Types of Key Constraints Primary key – the column (or collection of columns) that uniquely identifies a given row in a table Primary key – the column (or collection of columns) that uniquely identifies a given row in a table Composite key – a primary key with two or more fields Composite key – a primary key with two or more fields Candidate keys – other unique keys in a table that are capable (or candidates) of being used as the primary key Candidate keys – other unique keys in a table that are capable (or candidates) of being used as the primary key Surrogate key (synthetic key) – system-generated primary key usually hidden from users Surrogate key (synthetic key) – system-generated primary key usually hidden from users Foreign key – the field in one relation required to match the primary key of another relation to specify relationships between the relations and to ensure referential integrity constraints Foreign key – the field in one relation required to match the primary key of another relation to specify relationships between the relations and to ensure referential integrity constraints