Relational Database Management System A type of database in which records are stored in relational form is called relational database management system.

Slides:



Advertisements
Similar presentations
The Relational Model Much of the material presented in these slides was developed by Dr. Ramon Lawrence at the University of Iowa.
Advertisements

RELATIONAL DATABASES. Relational data Structure RELATION: Table with columns and rows ATTRIBUTE: Column of a relation DOMAIN: Set of allowable values.
Relational Model (CB Chapter 4) CPSC 356 Database Ellen Walker Hiram College.
CSC271 Database Systems Lecture # 11.
Chapter 3 CIS 458 Sungchul Hong
CSC271 Database Systems Lecture # 13. Summary: Previous Lecture  Grouping through GROUP BY clause  Restricted groupings  Subqueries  Multi-Table queries.
The Relational Model System Development Life Cycle Normalisation
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Relations The Relational Data Model John Sieg, UMass Lowell.
Lesson II The Relational Model © Pearson Education Limited 1995, 2005.
Chapter 3. 2 Chapter 3 - Objectives Terminology of relational model. Terminology of relational model. How tables are used to represent data. How tables.
1 Minggu 2, Pertemuan 3 The Relational Model Matakuliah: T0206-Sistem Basisdata Tahun: 2005 Versi: 1.0/0.0.
1 Pertemuan 04 MODEL RELASIONAL Matakuliah: >/ > Tahun: > Versi: >
Thomas Connolly and Carolyn Begg’s
LOGICAL DATABASE DESIGN
Database Architecture The Relational Database Model.
Chapter 3 Relational Model Chapter 4 in Textbook.
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
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.
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
RAJIKA TANDON DATABASES CSE 781 – Database Management Systems Instructor: Dr. A. Goel.
Physical Database Design Chapter 6. Physical Design and implementation 1.Translate global logical data model for target DBMS  1.1Design base relations.
Module 3: The Relational Model.  Overview Terminology Relational Data Structure Mathematical Relations Database Relations Relational Keys Relational.
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.
CSC271 Database Systems Lecture # 12. Summary: Previous Lecture  Row selection using WHERE clause  WHERE clause and search conditions  Sorting results.
1 The Relational Database Model. 2 Learning Objectives Terminology of relational model. How tables are used to represent data. Connection between mathematical.
Chapter 9 Methodology - Logical Database Design Chapter 16 in Textbook.
9/7/2012ISC329 Isabelle Bichindaritz1 The Relational Database Model.
The Relational Model Pertemuan 03 Matakuliah: M0564 /Pengantar Sistem Basis Data Tahun : 2008.
Relational Database. Database Management System (DBMS)
Slide Chapter 5 The Relational Data Model and Relational Database Constraints.
1 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
Chapter 13 Normalization Transparencies Last Updated: 08 th May 2011 By M. Arief
1 Chapter 17 Methodology - Local Logical Database Design.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
12/2/2015CPSC , CPSC , Lecture 41 Relational Model.
L8-2-S1 Misc Topics © M.E. Fayad SJSU -- CmpE Database Design Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I College of.
Modelling Methodologies Chapter 16, 17, 18. Modeling Methodologies2 Database Design Physical DB design Logical DB design Conceptual DB design Hardware.
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,
April 20022CS3X1 Database Design The relational model John Wordsworth Department of Computer Science The University of Reading
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
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.
Chapter 2 The Relational Model. 2-2 In This Chapter You Will Learn   What a data model is and what its uses are   The terminology of the relational.
Chapter 4 The Relational Model Pearson Education © 2009.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
Teacher Workshop Database Design Pearson Education © 2014.
Chapter 2: Relational Model
The Relational Database Model
Data Base System Lecture 6: Relational Model
Chapter 3 The Relational Model.
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
DATABASE SYSTEM.
Chapter 4+17 The Relational Model Pearson Education © 2014.
Chapter 4 The Relational Model Pearson Education © 2009.
The Relational Model Transparencies
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
Design tools and techniques for a relational database system
Chapter 4 The Relational Model Pearson Education © 2009.
INSTRUCTOR: MRS T.G. ZHOU
Views Base Relation View
Chapter 3 The Relational Model
RELATIONAL DATA MODEL - 1
Presentation transcript:

Relational Database Management System A type of database in which records are stored in relational form is called relational database management system.

Relational Data Structure 1. Relation 2. Attribute 3. Domain 4. Tuple 5. Degree 6. Cardinality 7. Relational database

Relational Data Structure Relation A relation is a table with columns and rows. Attribute An attribute is a named column of a relation. Domain A domain is the set of allowable values for one or more attributes.

Relational Data Structure Tuple A tuple is a row of a relation. Degree The degree of a relation is the number of attributes it contains. Cardinality Cardinality The cardinality of a relation is the number of tuples it contains. Relational database A collection of normalized relations with distinct relation names.

Database Relations RELATIONAL SCHEMA A named relation defined by a set of attribute and domain name pairs. Relational database Schema A set of relation schemas, each with a distinct name.

Properties of Relations A relation has the following properties: The relation has a name that is distinct from all other relation names in the relational schema; Each cell of the relation contains exactly one atomic (single) value; Each attribute has a distinct name; The values of an attribute are all from the same domain; Each tuple is distinct; there are no duplicate tuples; The order of attributes has no significance; The order of tuples has no significance, theoretically. (However, in practice, the order may affect the efficiency of accessing tuples.)

Relational Keys Super key An attribute, or set of attributes, that uniquely identifies a tuple within a relation. Candidate key A super key such that no proper subset is a super key within the relation.

Relational Keys A candidate key, K, for a relation R has two properties: 1. Uniqueness-:in each tuple of R, the values of K uniquely identify that tuple. 2. Irreducibility-:no proper subset of K has the uniqueness property.

Relational Keys Primary key The candidate key that is selected to identify tuples uniquely within the relation. Foreign key An attribute, or set of attributes, within one relation that matches the candidate key of some (possibly the same) relation.

Representing Relational Database Schemas The common convention for representing a relation schema is to give the name of the relation followed by the attribute names in parentheses. Normally, the primary key is underlined. Branch (branchNo, street, city, postcode) Staff (staffNo, fName, lName, position, sex, DOB, salary, branchNo) PropertyForRent (propertyNo, street, city, postcode, type, rooms, rent, ownerNo, staffNo, branchNo) Client (clientNo, fName, lName, telNo, prefType, maxRent)

Integrity Constraints Defining the types of operation that are allowed on the data, and a set of integrity constraints, which ensure that the data is accurate. The two principal rules for the relational model are known as entity integrity and referential integrity. Other types of integrity constraint are multiplicity, and general constraints

Nulls A null can be taken to mean the logical value ‘unknown’. It can mean that a value is not applicable to a particular tuple, or it could merely mean that no value has yet been supplied. Nulls are a way to deal with incomplete or exceptional data. However, a null is not the same as a zero numeric value or a text string filled with spaces; zeros and spaces are values, but a null represents the absence of a value.

Entity Integrity By definition, a primary key is a minimal identifier that is used to identify tuples uniquely. This means that no subset of the primary key is sufficient to provide unique identification of tuples. If we allow a null for any part of a primary key, we are implying that not all the attributes are needed to distinguish between tuples, which contradicts the definition of the primary key

Referential Integrity If a foreign key exists in a relation, either the foreign key value must match a candidate key value of some tuple in its home relation or the foreign key value must be wholly null.

General Constraints Additional rules specified by the users or database administrators of a database that define or constrain some aspect of the enterprise.

Views The dynamic result of one or more relational operations operating on the base relations to produce another relation. A view is a virtual relation that does not necessarily exist in the database but can be produced upon request by a particular user, at the time of request.

Purpose of Views It provides a powerful and flexible security mechanism by hiding parts of the database from certain users. It permits users to access data in a way that is customized to their needs, so that the same data can be seen by different users in different ways, at the same time. It can simplify complex operations on the base relations.