Assignment 4 Map entities with relationships to relational schemas.

Slides:



Advertisements
Similar presentations
WHAT D IS RAW, UNPROCESSED FACTS AND FIGURES COLLECTED, STORED AND PROCESSED BY COMPUTERS.
Advertisements

ER Modeling Case Studies
1 Quiz 2. 2 One instructor cannot be at two or more class rooms at the same time. One class room cannot be shared by two or more instructors at the same.
1 Assignment 4 Map entities with relationships to relational schemas. Use DBDL to describe the table schemas.
Assignment Design Methodology A structured approach that uses procedures, techniques, tools, and documentation aids to support and facilitate the.
Assignment6-1 Assignment6-2 Due Wednesday, March 13 1.
Translating from ER to Relationship Schema Adapted from Juliana Freire.
Relational Model Stores data as tables –Each column contains values about the same attribute –Each column has a distinct name –Each row contains values.
1 Design Methodology A structured approach that uses procedures, techniques, tools, and documentation aids to support and facilitate the process of design.
CS 3630 Database Design and Implementation. First Normal Form (1NF) No multi-value attributes Done when mapping E-R model to relational schema DBDL 2.
1 CS 3630 Database Design and Implementation. 2 Final Exam 7:00 – 8:52 PM, Thursday, May 16 Section 1: Ull 009 Section 2: Ull Points –50 points.
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.
DATA MODELING AND DATABASE DESIGN
1 Test1 N = {n: n is an integer and n  0} X = {x: x = n + 5, where n  N} Y = {y: y = 7 * n - 1, where n  N} List the three smallest elements of each.
Tutorial 3. This tutorial went through how to convert multiplicity numbering used in UML modelling to ERD, and vice versa. In the exam and assignments,
Project – Phase II Derive Database Schema from E-R Model DBDL.
1 CS 3630 Database Design and Implementation. 2 Sets Foundation of relational database. Basic Operations Power set Mapping.
CS 3630 Database Design and Implementation. 2 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
1 E-R Model (II) Keys To identify records in a table Candidate Key Primary Key Alternate Key Composite Key.
3 & 4 1 Database Systems: Design, Implementation, & Management, 7 th Edition, Rob & Coronel Keys Consists of one or more attributes that determine other.
Chapter 9 Logical Database Design : Mapping ER Model To Tables.
CS 3630 Database Design and Implementation. 2 Design Methodology Three main phases 1.Conceptual database design Understanding client data E-R (EER) Model.
CS 3630 Database Design and Implementation. Unnormalized Form (UNF) student courses John CS363 CS334 CS323 Multi-Value attribute Common in reports 2.
Database Design – Lecture 6 Moving to a Logical Model.
Week 7-8 DBMS ER-Relational Mapping. ER-Relational Mapping.
Second Normal Form (2NF) A relation R is in 1NF, and every non-primary-key attribute is fully functionally dependent on the primary key Then R is in 2NF.
Quiz Where to Store Attributes of Relationship Staff (1) Interviews (0..*) Client Attributes: date, time, comment Staff (StaffNo, …) PK: StaffNo.
CS 3630 Database Design and Implementation. Null Value The value of an attribute could be NULL NOT known at the moment or NOT Applicable Example Cell.
Howard Paul. Sequential Access Index Files and Data File Random Access.
DATA MODELING AND DATABASE DESIGN DATA MODELING AND DATABASE DESIGN Part 2.
Assignment 5–2 For each new relation, Use DBDL to specify the relation scheme Give the functional dependencies Give the corresponding relation instance.
CS 3630 Database Design and Implementation
Tables & Relationships
CS 3630 Database Design and Implementation
Information Systems in Organizations 2. 1
Basic Database Design COSC 2328 – Web Programming.
CS 3630 Database Design and Implementation
Entity-Relationship Model
Tables and Their Characteristics
Database Design – Lecture 4
CS 3630 Database Design and Implementation
Lecture # 13 (After 1st Exam)
Constraints AND Examples
Implementation of Entity Relationships
OO models with relational databases
Entity Relationship Diagrams - 1
CS 3630 Database Design and Implementation
Assignment 5–2 For each table, Give a meaningful name
Order Database – ER Diagram
CS 3630 Database Design and Implementation
Database Management System
CS 3630 Database Design and Implementation
Boyce-Codd Normal Form (BCNF)
Foreign key (FK) is defined as follows:
Technical Module A Data Modeling Definitions
בסיסי נתונים - מצגת ההרצאה - 1.
Session 2 Welcome: The seventh learning sequence
CS 3630 Database Design and Implementation
Assignment 2 Due Thursday Feb 9, 2006
E-R DIAGRAMS TO RELATIONAL SCHEMA
DATABASE SYSTEM.
From data needs to ER Model to relational DB Schema
CMPE/SE 131 Software Engineering March 9 Class Meeting
DBMS ER-Relational Mapping
Mapping an ERD to a Relational Database
Information Systems in Organizations 2. 1
Constraints AND Examples
G061 - Data Dictionary.
Mapping an ERD to a Relational Database
Chapter 3 The Relational Model
Presentation transcript:

Assignment 4 Map entities with relationships to relational schemas. Use DBDL to describe the table schemas.

E-R Model E1 att1 att2: composite (att21, att22, att23) att3: multi-value composite (att31, att32, att33) Primary Key: att1 DBDL E1 (att1, att21, att22, att23) PK: att1 AK: NONE FK: NONE NewEntity (NewAtt, att1, att31, att32, att33) PK: NewAtt AK: None FK: att1 References E1

E-R Model E2 E3 A1 B1: composite (B11, B12, B13) A2 B2 Primary Key: A1 Primary Key: B1   E2 (0..*) ----- R1 ----- (1..*) E3 Attribute: D1, D2 DBDL E2 (A1, A2) PK: A1 AK: NONE FK: NONE E3 (B11, B12, B13, B2) PK: B11, B12, B13 AK: NONE FK: NONE R1(C, A1, B11, B12, B13, D1, D2) PK: C (new attribute as PK) AK: NONE FK: A1 References E2 B11, B12, B13 References E3

E-R Model E4 E5 A3: composite (A31, A32) B3 A4 B4: multi-value Primary Key: A4 B5 Primary Key: B3   E4 (0..*) ----- R2 ----- (0..1) E5 DBDL E4 (A31, A32, A4, B3) PK: A4 AK: NONE FK: B3 References E5 E6 (B3, B4, ID) PK: ID E5 (B3, B5) PK: B3 AK: NONE FK: NONE