Design tools and techniques for a relational database system

Slides:



Advertisements
Similar presentations
The Relational Model J.G. Zheng May 15 th Introduction Edgar F. Codd, 1970 One sentence to explain relational database model: Data are organized.
Advertisements

Chapter 3 : Relational Model
CSC271 Database Systems Lecture # 5. Summary: Previous Lecture  Database languages  Functions of a DBMS  DBMS environment  Data models and their categories.
Relational Databases Chapter 4.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Relations The Relational Data Model John Sieg, UMass Lowell.
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.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education, Inc. publishing as Prentice Hall 4-1.
1 Pertemuan 04 MODEL RELASIONAL Matakuliah: >/ > Tahun: > Versi: >
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
Relational Database Management System A type of database in which records are stored in relational form is called relational database management system.
Chapter 4 Relational Databases Copyright © 2012 Pearson Education 4-1.
Database Architecture The Relational Database Model.
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.
CS370 Spring 2007 CS 370 Database Systems Lecture 7 The Relational model.
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
Fundamentals of Relational Database Yong Choi School of Business CSUB, Bakersfield.
DBSQL 3-1 Copyright © Genetic Computer School 2009 Chapter 3 Relational Database Model.
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.
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.
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.
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.
The relational model A data model (in general) : Integrated collection of concepts for describing data (data requirements). Relational model was introduced.
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,
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Chapter 4 The Relational Model Pearson Education © 2009.
LECTURE TWO Introduction to Databases: Data models Relational database concepts Introduction to DDL & DML.
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.
Relational Model Database Management Systems, 3rd ed., Ramakrishnan and Gehrke, Chapter 3.
Chapter 2: Relational Model
Database Design The Relational Model Text Ch5
Data Models.
Chapter 4 Relational Databases
Chapter 3: Intro to Relational Model
Chapter 2: Intro to Relational Model
Chapter 2: Intro to Relational Model
The Relational Database Model
Data Base System Lecture 6: Relational Model
Normalization Referential Integrity
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 The Relational Model Pearson Education © 2009.
The Relational Model Transparencies
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
Databases and Information Management
Chapter 4 The Relational Model Pearson Education © 2009.
Chapter 4 The Relational Model Pearson Education © 2009.
logical design for relational database
Chapter 4 The Relational Model Pearson Education © 2009.
Relational data model. Codd's Rule E.F Codd was a Computer Scientist who invented Relational model for Database management. Based on relational model,
INTRODUCTION A Database system is basically a computer based record keeping system. The collection of data, usually referred to as the database, contains.
Chapter 3 The Relational Model
RELATIONAL DATA MODEL - 1
Presentation transcript:

Design tools and techniques for a relational database system DATABASE DESIGN & DEVELOPMENT Design tools and techniques for a relational database system Zatil Ridh'wah Hj Darot

Learning objectives The origins of the relational model. The terminology of the relational model. How tables are used to represent data. Properties of database relations. How to identify candidate, primary, alternate, and foreign keys. The meaning of entity integrity and referential integrity.

relational model In the relational model, all data is logically structured within relations (tables). Each relation has a name and is made up of named attributes (columns) of data. Each tuple (row) contains one value per attribute.

The origins of the relational model. The relational model was first proposed by E. F. Codd in his seminal paper “A relational model of data for large shared data banks” (Codd, 1970). The relational model’s objectives were specified as follows: To allow a high degree of data independence. Application programs must not be affected by modifications to the internal data representation, particularly by changes to file organizations, record orderings, or access paths. To provide substantial grounds for dealing with ______________, consistency, and redundancy problems. In particular, Codd’s paper introduced the concept of normalized relations, that is, relations that have no repeating groups. To enable the expansion of set-oriented data manipulation languages

The terminology of the relational model. Relational Data Structure A relation is a table with columns and rows. In the relational model, relations are used to hold information about the objects to be represented in the database. An attribute is a named column of a relation. Attributes can __________ in any order and the relation will still be the same relation, and therefore will convey the same meaning. Tuple The elements of a relation are the rows or tuples in the table.

How tables are used to represent data

4) Domain the set of allowable ___________ for one or more attributes. In the relational model, relations are used to hold information about the objects to be represented in the database.

Alternative terminology

Properties of database relations. A relation has the following properties: the relation has a name that is _________ 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 (row) has no significance, theoretically. (However, in practice, the order may affect the efficiency of accessing tuples.)

How to identify candidate, primary, alternate, and foreign keys Relational Keys Superkey uniquely identifies each tuple within a relation. Candidate Key superkey such that no proper subset is a superkey within the relation. Primary Key the field (or fields) in a record used to uniquely identify the record. Foreign Key identifies a related record in another file. A field that is a primary key in another file. Alternate Key the candidate keys that are not selected to be the primary key.

The meaning of entity integrity and referential integrity. is a constraint that states that in a base relation no attribute of a primary key can be null. Referential integrity states that foreign key values must match a candidate key value of some tuple in the home relation or be wholly null. Apart from relational integrity, integrity constraints include required data, domain, and multiplicity constraints; other integrity constraints are called general constraints.

tutorials 1) Discuss the differences between the candidate keys and the primary key of a relation. Explain what is meant by a foreign key. How do foreign keys of relations relate to candidate keys? Give examples to illustrate your answer.

practical Go to the link below: https://www.youtube.com/watch?v=PBhftKTmdHI&list=PL4UezTfGBADBmCOYtQ8QohflQN Y1y3oE7 Open Microsoft Access and do: Practical 1: How to Make a Database - Part 1 – Tables Practical 2: How to Make a Database - Part 2- Forms Practical 3: How to Make a Database - Part 3 - Importing Data