Conceptual Design to Logical Design Lecture 4. Aims  To introduce Business Rules  To identify what a Business Rule is  To Introduce Business Operations.

Slides:



Advertisements
Similar presentations
The transformation of an ER or EER model into a relational model
Advertisements

© McGraw-Hill Companies, Inc., McGraw-Hill/Irwin Extended Learning Module C Designing Databases and Entity-Relationship Diagramming.
Advanced Data Modeling
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 6 Advanced Data Modeling.
Database Systems: Design, Implementation, and Management Tenth Edition
Chapter 6 Advanced Data Modelling
BIS Database Systems School of Management, Business Information Systems, Assumption University A.Thanop Somprasong Chapter # 6 Advanced Data Modeling.
The Relational Model System Development Life Cycle Normalisation
Monash University Week 7 Data Modelling Relational Database Theory IMS1907 Database Systems.
Chapter 6 Methodology Logical Database Design for the Relational Model Transparencies © Pearson Education Limited 1995, 2005.
Conceptual Design Lecture 3 Database Development.
Chapter 6 Methodology Conceptual Databases Design Transparencies © Pearson Education Limited 1995, 2005.
Entity-Relationship Model and Diagrams (continued)
Methodology Logical Database Design for the Relational Model
Lecture Fourteen Methodology - Conceptual Database Design
Database Design Concepts INFO1408 Term 2 week 1 Data validation and Referential integrity.
CHAPTER 2: MODELING DATA IN THE ORGANIZATION © 2013 Pearson Education, Inc. Publishing as Prentice Hall 1 Modern Database Management 11 th Edition Jeffrey.
Chapter 4 Entity Relationship (ER) Modeling
Database Systems: Design, Implementation, and Management Tenth Edition
CS424 PK, FK, FD Normalization Primary and Foreign Keys Primary and foreign keys are the most basic components on which relational theory is based. Primary.
Keys Chapter 8 Database Design for Mere Mortals. Why Keys Are Important They ensure that each record in a table can be properly identified. They help.
July 14, 2015ICS 424: recap1 Relational Database Design: Recap of ICS 324.
Chapter 14 & 15 Conceptual & Logical Database Design Methodology
Entity-Relationship Design
Entity-Relationship modeling Transparencies
CSC271 Database Systems Lecture # 6. Summary: Previous Lecture  Relational model terminology  Mathematical relations  Database relations  Properties.
Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
Methodology - Conceptual Database Design Transparencies
Methodology Conceptual Databases Design
Chapter 5 Entity Relationship (ER) Modelling
McGraw-Hill/Irwin Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. Extended Learning Module C Designing Databases and Entity-Relationship.
Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities.
Deanery of Business & Computer Sciences Transformation of Logical Diagram into Database Design Language Lecture 6 Database Technology Level.
CSCI 3140 Module 3 – Logical Database Design for the Relational Model Theodore Chiasson Dalhousie University.
Chapter 8 Data Modeling Advanced Concepts Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition.
© Pearson Education Limited, Chapter 9 Logical database design – Step 1 Transparencies.
Database Systems: Design, Implementation, and Management Eighth Edition Chapter 4 Entity Relationship (ER) Modeling.
Chapter 4 Entity Relationship (ER) Modeling.  ER model forms the basis of an ER diagram  ERD represents conceptual database as viewed by end user 
3 & 4 1 Chapters 3 and 4 Drawing ERDs October 16, 2006 Week 3.
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.
Database Systems: Design, Implementation, and Management Ninth Edition Chapter 4 Entity Relationship (ER) Modeling.
Databases Illuminated Chapter 3 The Entity Relationship Model.
SQL Structured Query Language. Aims  To introduce the implementation of a Physical design using SQL.  To introduce SQL Data Definition Language (DDL).
Database Design – Lecture 6 Moving to a Logical Model.
Database Systems: Design, Implementation, and Management Ninth Edition
Information Access Mgt09/12/971 Entity-Relationship Design Information Level Design.
Conceptual Databases Design Step 1 © Pearson Education Limited 1995, 2005.
Copyright © 2013 by The McGraw-Hill Companies, Inc. All rights reserved. McGraw-Hill/Irwin APPENDIX C DESIGNING DATABASES APPENDIX C DESIGNING DATABASES.
Agenda  TMA01  M876 Block 2 Relational Theory. Data Modeling.
MIS 3053 Database Design & Applications The University of Tulsa Professor: Akhilesh Bajaj ER Model Lecture 2 © Akhilesh Bajaj, 2000, 2002, 2003, 2004,
Chapter 3: Modeling Data in the Organization. Business Rules Statements that define or constrain some aspect of the business Assert business structure.
DBMS ER model-2 Week 6-7.
Mapping ER to Relational Model Each strong entity set becomes a table. Each weak entity set also becomes a table by adding primary key of owner entity.
CSCI 6315 Applied Database Systems Review for Midterm Exam I Xiang Lian The University of Texas Rio Grande Valley Edinburg, TX 78539
Modeling Data in the Organization Muhammad Nasir
Data Modeling and Entity-Relationship Model I
Department of Mathematics Computer and Information Science1 CS 351: Database Management Systems Christopher I. G. Lanclos Chapter 4.
Lecture # 14 Chapter # 5 The Relational Data Model and Relational Database Constraints Database Systems.
Data Modeling Using the Entity- Relationship (ER) Model
Entity- Relationship (ER) Model
Lecture 2 The Relational Model
ER MODEL Lecture 3.
Lecture # 13 (After 1st Exam)
Entity-Relationship Model and Diagrams (continued)
Review of Week 1 Database DBMS File systems vs. database systems
CGS 2545: Database Concepts Summer 2006
Chapter 3 The Relational Model
Presentation transcript:

Conceptual Design to Logical Design Lecture 4

Aims  To introduce Business Rules  To identify what a Business Rule is  To Introduce Business Operations  To identify what a Business Operation is.  To introduce revisions required for the logical model.

Conceptual Design Requirements  ER Diagram  Diagram Script  Business Rules  Operations

Conceptual Design Requirements  ER Diagram  Diagram Script For your group work this should already be complete.

Business Rules  What is a Business Rule?  A business rule –is used to describe properties of an application which cannot be expressed with a conceptual model. –defines or constrains an aspect of the use of the database. –often focuses on access rights or business calculations.

Business Rules A Business Rule can be  integrity constraint  A derivation

Structure of Business Rules  Integrity Constraints can always be expressed in the form of assertions.  An appropriate structure is must/must not must/must not

Integrity Constraints  Head of subject must belong to the subject  A lecturer must not have a salary greater that that of their head of subject

Structure of Business Rules  Derivations can be expressed by specifying the operations that allow us to obtain the derived concept.  An appropriate structure is is obtained by is obtained by

Derivation  The number of students on a module is obtained by counting the students registered on that module.  The total cost of a product on an order is obtained by multiplying the product cost by the quantity ordered

Business Rules  Business rules can be listed as follows Rule No Rule Description BR-1 Tutors must not edit student details BR-2 New student’s details must be added by the registry administrator BR-3 The number of students in a class group is obtained by counting students allocated to that class group.

Operations on the data  An operation is a task carried out on the data, including –Add –Edit –Browse –Delete  Effectively the life cycle of an entity.

Fragment of Staff Interview regarding student applications  When I get my copies, I check past records to see if the student is a previous student. If there is a past record, I check that it is up-to-date and if the record is not up-to-date, I update it. If the student is a new student, a student record card is created. The date of the most recent application by a student is also recorded.

Fragment of Staff Interview regarding student applications  When I get my copies, I check past records to see if the student is a previous student. If there is a past record, I check that it is up-to-date and if the record is not up-to-date, I update it. If the student is a new student, a student record card is created. The date of the most recent application by a student is also recorded. Browse student record Edit student record Add new student record

Operations on the data  The operations identified from the staff interview fragment are Rule No Rule Description OP-1 Add a new student record. OP-2 Edit a student record. OP-3 Display student records

Logical Design  Read Chapter 4 – Logical Design  Chapter 4 is not required for next weeks in-class test.

Migration to Logical Design  The logical Model is produced by revising the Conceptual Model and incorporating the diagram script into the new logical model.

Migration to Logical Design  What must we resolve –Many to many relationships –Inheritance

Migration to Logical Design  What must we identify –how the entities are actually related –which attribute(s) in each of the related entities facilitate that relationship. –Primary keys –Migrate the primary keys to establish foreign keys

Define Primary Key Attributes  The primary key is an attribute or a set of attributes that uniquely identify a specific instance of an entity.  Every entity in the data model must have a primary key whose values uniquely identify instances of that entity.

Define Primary Key Attributes  To qualify as a primary key for an entity, an attribute, or combination of attributes, must have the following properties: –a non-null value (must have a value, cannot be blank) for each instance of the entity. –the value or combined value must be unique for each instance of an entity. –the values must not change or become null during the life of each entity instance.

Composite Primary Keys  Sometimes there is not single attribute which is suitable for use as a primary key and more than one attribute is required to uniquely identify an entity instance.  A primary key that made up of more than one attribute is known as a ‘composite key’ or ‘compound key’.

Artificial Keys

Resolving Many to Many Relationships.  An Associative entity is an entity used to associate two or more entities in order to reconcile a many- to-many relationship –In general the primary key of the Associative entity contains a combination of the primary keys in the two entities in the many-to-many relationship, resulting in a composite key.

Conceptual Model  Revision of Many to many. course student N:M CourseCode StudentID

Resultant Logical Model  The Many to Many relationship has been replaced with a new associative Entity StudentOnCourse Original entity Course Original entity Student StudentOnCourse

Logical Diagram Incorporating the Diagram Script. coursestudentCoursestudent courseCodecourseCode(fk) studentID(fk) studentID title cost gradesFirstName sSurname sAddress1 sAddress2 sAddress3 sPostcode sTelephone lastApplicationDate nkFirstName nkLSurname nkAddress1 nkAddress2 nkAddress3 nkPostcode nkTelephone