Database Dr. Roueida Mohammed.

Slides:



Advertisements
Similar presentations
Review Indra Budi Fakultas Ilmu Komputer UI 2 Database Introduction Database vs File Processing Main purpose of database Database Actors.
Advertisements

Review for Final Test Indra Budi
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
The Relational Model Codd (1970): based on set theory Relational model: represents the database as a collection of relations (a table of values --> file)
Database Architecture The Relational Database Model.
1 Relational model concepts Key constraints Referential integrity constraint Steen Jensen, autumn 2013.
Relational Model & Relational Algebra. 2 Relational Model u Terminology of relational model. u How tables are used to represent data. u Connection between.
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.
Module Title? DBMS E-R Model to Relational Model.
Relational Model Session 6 Course Name: Database System Year : 2012.
1 The Relational Data Model, Relational Constraints, and The Relational Algebra.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
3 1 Chapter 3 The Relational Database Model Database Systems: Design, Implementation, and Management, Sixth Edition, Rob and Coronel.
FEN Introduction to the database field:  The Relational Model Seminar: Introduction to relational databases.
11/07/2003Akbar Mokhtarani (LBNL)1 Normalization of Relational Tables Akbar Mokhtarani LBNL (HENPC group) November 7, 2003.
Relational Algebra – Part 2
2141-W2013 Mid-term Prep. Next week Monday, Feb 18 – Midterm Covers everything before normalization Wednesday, Feb 20 – Ass 3 (normalization) due – Wrap.
Chapter 2 Introduction to Relational Model. Example of a Relation attributes (or columns) tuples (or rows) Introduction to Relational Model 2.
Copyright © 2011 by Michael V. Mannino All rights reserved. Database Design, Application Development, and Administration, 5 th Edition Quiz G4 Hyunwoo.
1. Explain the DBMS with its Components and Describe the various functions of DBMS? 2. Define the term DBA. Explain the various Roles of Database Administrator?
3 1 Database Systems The Relational Database Model.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
Lecture 03 Constraints. Example Schema CONSTRAINTS.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
CSCI 6315 Applied Database Systems Review for Midterm Exam I Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Introduction to the database systems (1)
Module 2: Intro to Relational Model
Introduction to Relational Model
Chapter 2: Relational Model
Chapter 2: Intro to Relational Model
Database Systems: Design, Implementation, and Management Tenth Edition
Data Models.
CIS 207 The Relational Database Model
Lecture 2 The Relational Model
Lecture # 13 (After 1st Exam)
Chapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model
Constraints AND Examples
Chapter 2: Intro to Relational Model
Chapter 3 The Relational Database Model
Order Database – ER Diagram
Data Base System Lecture 6: Relational Model
Relational Database.
Chapter 3 The Relational Model.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
The Relational Model Textbook /7/2018.
The Relational Model Transparencies
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model
CS4433 Database Systems Midterm Review.
Example of a Relation attributes (or columns) tuples (or rows)
Chapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model
Chapter 4 The Relational Model Pearson Education © 2009.
INSTRUCTOR: MRS T.G. ZHOU
Constraints AND Examples
Database Dr. Roueida Mohammed.
Chapter 4 Relational Algebra
Lecture 2 Relational Database
Chapter 3 The Relational Model
Presentation transcript:

Database Dr. Roueida Mohammed

The Relational Data Model  Specific relational data model concepts like attributes, tuples, domains, relations, domains, schemas, keys  The relational data model constraints like entity integrity, referential integrity, and semantic constraints which are used to enforce rules on a relational database  Relational algebra operations like union, intersection, difference, Cartesian product, selection, projection, join and division which are used to manipulate relations in a relational data model  Relational calculus which is an alternative to the relational algebra as a candidate for the manipulative part of the model

Basic concepts Attributes Domains Tuples Relations Schemas Keys

The types of keys: Candidate keys Primary keys . Foreign keys

Relational data model constraints . Entity integrity constraint Referential integrity constraint Semantic integrity constraints

Transforming an E/R Design into a Relational Design  Turn each entity set into a relation with the same set of attributes.  Replace a relationship by a relation whose attributes are the keys for the connected entity sets.

Relational algebra Relational algebra is a set of operators to manipulate relations. Each operator of the relational algebra takes either one or two relations as its input and produces a new relation as its output.

We defined 8 such operators, two groups of 4 each:  The traditional set operations: union, intersection, difference and Cartesian product  The special relational operations: select, project, join and divide.