Logical Database Design and Relation Data Model Muhammad Nasir

Slides:



Advertisements
Similar presentations
Data Bits Sets Trans- actions Specials Domains Normalization $100 $200 $300 $400 $500 $100 $200 $300 $400 $500 Final DataBit.
Advertisements

BUSINESS DRIVEN TECHNOLOGY Plug-In T4 Designing Database Applications.
Monash University Week 7 Data Modelling Relational Database Theory IMS1907 Database Systems.
Chapter 3 The Relational Model Transparencies © Pearson Education Limited 1995, 2005.
The Database Approach u Emphasizes the integration of data across the organization.
Fundamentals of Relational Database Yong Choi School of Business CSUB, Bakersfield.
© 2005 by Prentice Hall Chapter 3a Database Design Modern Systems Analysis and Design Fourth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Introduction to Structured Query Language (SQL)
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)
Thomas Connolly and Carolyn Begg’s
Databases and Connectivity MIS 497. Relational Databases Dominant database technology today. Dominant database technology today. Stores data in relational.
Michael F. Price College of Business Chapter 6: Logical database design and the relational model.
Database Architecture The Relational Database Model.
Entity-Relationship Design
1 Relational model concepts Key constraints Referential integrity constraint Steen Jensen, autumn 2013.
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.
Chapter 4 The Relational Model.
Copyright © 2012 Pearson Education, Inc. Publishing as Prentice Hall 9.1.
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.
Chapter 9 Designing Databases Modern Systems Analysis and Design Sixth Edition Jeffrey A. Hoffer Joey F. George Joseph S. Valacich.
Fundamentals of Relational Database Yong Choi School of Business CSUB, Bakersfield.
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.
Concepts of Relational Databases. Fundamental Concepts Relational data model – A data model representing data in the form of tables Relations – A 2-dimensional.
Copyright 2008 McGraw-Hill Ryerson 1 TECHNOLOGY PLUG-IN T5 DESIGNING DATABASE APPLICATIONS.
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.
CIS 210 Systems Analysis and Development Week 6 Part II Designing Databases,
1 Intro to Database Concepts BUAD/American University The Relational Database Model.
Unit 4 Object Relational Modeling. Key Concepts Object-Relational Modeling outcomes and process Relational data model Normalization Anomalies Functional.
Copyright 2006 Prentice-Hall, Inc. Essentials of Systems Analysis and Design Third Edition Joseph S. Valacich Joey F. George Jeffrey A. Hoffer Chapter.
1 © Prentice Hall, 2002 Chapter 5: Logical Database Design and the Relational Model Modern Database Management 6 th Edition Jeffrey A. Hoffer, Mary B.
The University of Akron Dept of Business Technology Computer Information Systems The Relational Model: Concepts 2440: 180 Database Concepts Instructor:
Database Systems: Design, Implementation, and Management Tenth Edition Chapter 3 The Relational Database Model.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 3 The Relational Database Model.
12/2/2015CPSC , CPSC , Lecture 41 Relational Model.
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
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.
1 ER Modeling BUAD/American University Mapping ER modeling to Relationships.
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 10 Designing Databases. Objectives:  Define key database design terms.  Explain the role of database design in the IS development process. 
© 2009 Pearson Education, Inc. Publishing as Prentice Hall 1 Chapter 5 (Part a): Logical Database Design and the Relational Model Modern Database Management.
6-1 © Prentice Hall, 2007 Topic 6: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 3 The Relational Database Model.
CHAPTER 2 : RELATIONAL DATA MODEL Prepared by : nbs.
The Relational Model © Pearson Education Limited 1995, 2005 Bayu Adhi Tama, M.T.I.
8-1 © Prentice Hall, 2007 Chapter 8: Object-Relational Modeling Object-Oriented Systems Analysis and Design Joey F. George, Dinesh Batra, Joseph S. Valacich,
Chapter 3 The Relational Model. Objectives u Terminology of relational model. u How tables are used to represent data. u Connection between mathematical.
Logical Database Design and Relational Data Model Muhammad Nasir
Chapter 4 The Relational Model Pearson Education © 2009.
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.
Logical Database Design and the Rational Model
Chapter 4 Logical Database Design and the Relational Model
Chapter 4: Logical Database Design and the Relational Model
Lecture 2 The Relational Model
Chapter 3 The Relational Database Model
© 2011 Pearson Education, Inc. Publishing as Prentice Hall
Database Management System
CHAPTER 4: LOGICAL DATABASE DESIGN AND THE RELATIONAL MODEL
Database solutions Chosen aspects of the relational model Marzena Nowakowska Faculty of Management and Computer Modelling Kielce University of Technology.
Chapter 3 The Relational Model
Presentation transcript:

Logical Database Design and Relation Data Model Muhammad Nasir

Contents Logical Database Design Logical Vs. Conceptual Data Model Logical Vs. Relational Data Model The Relational Data Model Properties of Relations Multi-valued attribute Repeating Group Integrity Constraints Domain Constraints Entity Integrity Constraints Referential Integrity Constraints

Logical Database Design In this chapter, we describe logical database design, with special emphasis on the relational data model Logical database design is the process of transforming the conceptual data model (described in Chapters 2 and 3) into a logical data model — One that is consistent and compatible with a specific type of database technology.

Logical Vs. Conceptual Conceptual data modeling is about understanding the organization— getting the right requirements. Logical database design is about creating stable database structures— correctly expressing the requirements in a technical language.

Logical Vs. Relational It is important, however, to note that the relational data model is a form of logical data model And as such it is different from the conceptual data models. Thus, an E-R data model is not a relational data model, and an E-R model may not obey the rules for a well-structured relational data model, called normalization

The Relational Data Model The relational data model was first introduced in 1970 by E. F. Codd, then of IBM (Codd, 1970) Today RDBMSs have become the dominant technology for database management, and there are literally hundreds of RDBMS products for computers ranging from smart- phones and personal computers to mainframes.

Basic Definitions Relation A named two-dimensional table of data Primary key An attribute or a combination of attributes that uniquely identifies each row in a relation Composite key A primary key that consists of more than one attribute

Basic Definitions Foreign key An attribute in a relation that serves as the primary key in another relation in the same database

Properties of Relations We have defined relations as two- dimensional tables of data. However, not all tables are relations. Relations have several properties that distinguish them from non-relational tables.

Properties of Relations 1. Each relation (or table) in a database has a unique name 2. An entry at the intersection of each row and column is atomic (or single valued). No multi-valued attributes are allowed in a relation 3. Each row is unique; no two rows in a relation can be identical. 4. Each attribute (or column) within a table has a unique name. 5. The sequence of columns (left to right) is insignificant. The order of the columns in a relation can be changed without changing the meaning or use of the relation. 6. The sequence of rows (top to bottom) is insignificant. As with columns, the order of the rows of a relation may be changed or stored in any sequence.

Multi-valued Attribute The second property of relations listed in the preceding section states that no multi-valued attributes are allowed in a relation. Thus, a table that contains one or more multi-valued attributes is not a relation

Multi-valued Attribute

Repeating Group

Integrity Constraints The relational data model includes several types of constraints, or rules limiting acceptable values and actions, whose purpose is to facilitate maintaining the accuracy and integrity of data in the database. The major types of integrity constraints are domain constraints, entity integrity, and referential integrity

Domain Constraints All of the values that appear in a column of a relation must be from the same domain. A domain is the set of values that may be assigned to an attribute A domain definition usually consists of the following components: domain name, meaning, data type, size (or length), and allowable values or allowable range

Entity Integrity The entity integrity rule is designed to ensure that every relation has a primary key and that the data values for that primary key are all valid. In particular, it guarantees that every primary key attribute is not-null.

Entity Integrity Null A value that may be assigned to an attribute when no other value applies or when the applicable value is unknown Entity integrity rule A rule that states that no primary key attribute (or component of a primary key attribute) may be null

Referential Integrity Referential integrity constraint A rule that states that either each foreign key value must match a primary key value in another relation or the foreign key value must be null

The End Thanks for listening Questions would be appreciated.