Converting from Relational Model to Data Model

Slides:



Advertisements
Similar presentations
Convert ER to Relational Database Entity relation Entity relation Attributes attributes Attributes attributes Primary key primary key Primary key primary.
Advertisements

Chapter Eight: Database Redesign Database Processing: Fundamentals, Design, and Implementation.
1 Assignment 4 Map entities with relationships to relational schemas. Use DBDL to describe the table schemas.
Normalization ISYS 464. Database Design Based on ERD Strong entity: Create a table that includes all simple attributes –Composite Weak entity: add owner.
Data Modeling and Relational Database Design ISYS 650.
Fundamentals of Relational Database Yong Choi School of Business CSUB, Bakersfield.
1 MIS 340: Data Modeling 2 Yong Choi School of Business CSUB.
ERD to Relational Database Model Yong Choi BPA CSUB.
Data Modeling with ERD ISYS 363. Entity-Relationship Diagram An entity is a “thing” in the real world, such as a person, place, event for which we intend.
The Relational Database Model:
Data Modeling ISYS 464. Database Design Process Conceptual database design: –The process of creating a data model independent of implementation details.
Mapping from E-R Model to Relational Model Yong Choi School of Business CSUB.
SQL (Standard Query Language) Yong Choi School of Business CSU, Bakersfield.
Database – Part 2a Dr. V.T. Raja Oregon State University.
An Example: Video Rental System Video Rental Database Videos RentalsCustomers.
Data Modeling 1 Yong Choi School of Business CSUB.
Lecture4: Informal guidelines for good relational design Mapping ERD to Relation Ref. Chapter3 Lecture4 1.
Yong Choi School of Business CSUB
Mapping from Data Model (ERD) to Relational Model Yong Choi School of Business CSUB.
1 Data Modeling 2 Yong Choi School of Business CSUB.
Conceptual Data Modeling, Entity Relationship Diagrams
Mapping from Data Model (ERD) to Relational Model
Empl_ID Employee Empl_NameEmpl_Addr Skill. Employee Has Empl_NameEmpl_ID FName MI LName Dependent_Name DOB Gender Dependent.
SQL Structured Query Language Programming Course.
BIS 360 – Lecture Eight Ch. 12: Database Design and Normalization.
Slide content original, slide layout from Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke1 The Entity-Relationship Model Chapter 2.
Logical Database Design and Entity-Relationship Mapping “To Err is Human; to Forgive, Divine.” ~ Alexander Pope ~
Database Design – Lecture 8
Department of Computer Engineering MASTER THESIS OBJECT DATA MODELING AS STRUCTURING APPROACH IN DATABASE DESIGN Name : Anwar Mahmoud Dawoud Supervisor.
1 IT420: Database Management and Organization SQL Views 15 February 2006 Adina Crăiniceanu
Normalizing Your Database CPT 242. Normalization The procedure where the developer analyzes the data and establishes the table structure to create the.
Data Modeling with ERD BUS 782. Entities An entity is a person, place, object, event, or concept in the user environment about which the organization.
Database Design – Lecture 6 Moving to a Logical Model.
Data Modeling Yong Choi School of Business CSUB. Part # 2 2 Study Objectives Understand concepts of data modeling and its purpose Learn how relationships.
Database Design – Lecture 7
Lecture4: Informal guidelines for good relational design Mapping ERD to Relation Prepared by L. Nouf Almujally Ref. Chapter3 Lecture4 1.
More Data Modeling CS 146. Relationship Lower Bounds  Lower bound: minimum number of related instances in a relationship  Value is typically 0 or 1.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 2.
Introduction to Database Systems
Data Modeling with ERD ISYS 363.
PRJ566 : Project Planning and Management Converting Class Diagram to Relational Schema.
Translating ER Schema to Relational Model
Chapter 9 Part-1: Concepts & Foreign Keys
Basic Database Design COSC 2328 – Web Programming.
Chapter Design Methodology Pearson Education © 2009.
Database Design The Relational Model Text Ch5
Chapter -3- Data Modeling Using the Entity-Relationship Model
ER Diagram Practical Example
Chapter -3- Data Modeling Using the Entity-Relationship Model
Data Modeling for Database Design 1
Entity-Relationship Model
Data Modeling for Database Design 1
Logical Data Modeling.
Assignment 4 Map entities with relationships to relational schemas.
ERD’s REVIEW DBS201.
Entity Relationship Diagrams ERDs
Database Management System
Normalization Practice
Chapter 4+17 The Relational Model Pearson Education © 2014.
Normalization Practice ANS
Chapter 9 Part-1: Concepts & Foreign Keys
ERD to Relational DB Practice
Data Modeling for Database Design 2
Chapter # 3 The Relational Database Model.
Database Design: Relational Model
Mapping an ERD to a Relational Database
Chapter # 4 Entity Relationship (ER) Modeling.
Mapping an ERD to a Relational Database
Normalization Practice
Presentation transcript:

Converting from Relational Model to Data Model Yong Choi School of Business CSUB

Reverse Engineering Procedure A table turns into an entity. Each column in the table turns into an attribute. A PK of the table turns into an identifier of the entity . In general, the ERD (data model) does not include FK information. Restaurant database: next slide

Data Model

Reverse Engineering: composite attribute Customer Customer_ID Customer_Name Customer_Address

Reverse Engineering: multi-valued attribute Employee Employee SSN Name E101 Johnson E102 Smith E103 Conley E104 Roberts Phone SSN Phone# E101 312 … E102 708 … E104 603 … SSN Name Phone # 24

Reverse Engineering 1

Reverse Engineering 1 Nurse: Care Center Nurse_ID, Name, Date_of_Birth Center_Name, Location, Date_Assigned

Reverse Engineering 1

Reverse Engineering Student Enroll Class STU_NUM STU_LNAME CLASS CODE ENROLL_GRADE Class CLASS CODE CRS_CODE CLASS_SECTION CLASS_TIME CLASS_ROOM PROF_NUM

Reverse Engineering CLASS STUDENT Class_ Student

Reverse Engineering Employee Emp_ID Emp_name Dependent Dep_SS_No Lname Fname DOB Gender

Reverse Engineering

Reverse Engineering Employee Emp_ID Emp_Name Emp_Address Manager_ID

Reverse Engineering

Reverse Engineering

Reverse Engineering