Skema Relasi. Entity-Relationship to Relational Mapping

Size: px
Start display at page:

Download "Skema Relasi. Entity-Relationship to Relational Mapping"

Transcription

1 Skema Relasi Entity-Relationship to Relational Mapping

2 DATABASE Modules Fundamentals Data Modeling Data Design Data Access Architecture Module 1: Database Systems Module 2: Relational Model Module 3: Entity Relationship Model Module 4: ER to Relational Mapping Module 5: FDs and Normalization Module 6: Relational Algebra Module 7: SQL Module 8: Database Systems Architecture 2

3 Database Desain Conceptual perspective User s perspective Database Requirements The Entity Relationalship (ER) Model is one of the most widely used mthod for conceptual design Conceptual Design Logical Design (Mapping) Conceptual Schema (ER) The Relational Model is the basic for several commercial DBMSs Logical Schema (Relational) Internal Schema

4 Contents Entity-Relationship to Relational Mapping Steps for mapping a basic ER diagram to a relational schema Uses the Company database example to illustrate the concepts Design choices in the ER Model and their impact on the resulting relational schema 4

5 Mapping Method Method for mapping a conceptual schema developed using the ER model to a relational database schema comprises 7 steps [ CASE tools also exist for this task ] 5

6 Steps for Mapping 1. Entity Mapping 2. Weak Entity Mapping 3. Binary 1:1 Relationship Mapping 4. Binary 1: N Relationship Mapping 5. Binary M:N Relationship Mapping 6. Multi-valued Attribute Mapping 7. N-ary Relationship Mapping 6

7 7 PROJECT EMPLOYEE Fname Minit Name Lname Bdate Ssn Sex Salary Address DEPENDENT Name Number DEPARTMENT MANAGES WORKS_FOR WORK_ON CONTROLS SUPERVISION N Relationship Name BirthDate Sex Name PNumber Location Number Of Employee StartDate supervisor supervise 1 N N N M N Hours Example ER Model: Company Database DEPENDENTS_OF Locations

8 8 PROJECT EMPLOYEE Fname Minit Name Lname Bdate Ssn Sex Salary Address Name Number DEPARTMENT MANAGES WORKS_FOR WORK_ON CONTROLS SUPERVISION Relationship Name BirthDate Sex Name PNumber Location Number Of Employee StartDate Hours Company Database in alternative notation (1,N) (1,1) (1,1) (0,1) (0,N) (1,1) (1,N) (1,N) (0,N) (0,1) (0,N) (1,1) Locations Locations DEPENDENTS_OF supervisor supervise employee departement manager Departementmanaged worker project Controllingdepartement employee dependent Controlledproject DEPENDENT

9 Step 1: Entity Mapping For each regular (non-weak) entity type E, create a relation R that includes all simple attributes of E Include only simple component attributes of a composite attribute Choose one key attribute of E as primary key for R. If key of E is composite, the set of simple attributes together should form the key Add following attributes in subsequent steps : Foreign key, Relationship, Multi-valued 9

10 Step 1: Example Entity Types in the Company Database: EMPLOYEE, DEPARTMENT, PROJECT Fname Minit Name Lname Sex Salary Address Ssn Bdate EMPLOYEE EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary ] 10

11 Step 1: Example Entity Types in the Company Database: EMPLOYEE, DEPARTMENT, PROJECT Name Number Number of employee Locations DEPARTMENT DEPARTMENT [ Dnumber, Dname, DnumEmp ] 11

12 Step 1: Example Entity Types in the Company Database: EMPLOYEE, DEPARTMENT, PROJECT Name PROJECT PNumber Location PROJECT [ Pno, Pname, Plocation ] 12

13 Schema (in progress) EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary ] DEPARTMENT [ Dnumber, Dname, DnumEmp ] PROJECT [ Pno, Pname, Plocation ] 13

14 Step 2: Weak Entity Mapping For each weak entity type W with owner entity type E create a relation R that includes all simple attributes of W Include as foreign key attributes in R the primary key attributes of the relation(s) that correspond to the owner entity types. (This maps the identifying relationship type of W) The primary key of R is the combination of the primary key(s) of the owner(s) and the primary key of the weak entity type W (if any) 14

15 Step 2: Example Weak Entity Types in the Company Database: DEPENDENT EMPLOYEE DEPENDENTS_OF Ssn DEPENDENT [ ESsn, DepName, Sex, Birthdate, Relationship ] where Primary Key {ESSN, DepName} includes Name Sex DEPENDENT Relationship BirthDate SSN, the primary key of the EMPLOYEE relation, which is the owner entity type, as a foreign key attribute of DEPENDENT (renamed ESSN) DepName, the partial key of DEPENDENT 15

16 Schema (in progress) EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary ] DEPARTMENT [ Dnumber, Dname, DnumEmp ] PROJECT [ Pno, Pname, Plocation ] DEPENDENT [ ESsn, DepName, Sex, BirthDate, Relationship ] 16

17 Step 3: Binary 1:1 Relationship For each binary 1:1 relationship type (RT), identify relations S & T that correspond to the entity types participating in RT Choose one relation (say S) and include as foreign key in S the primary key of T It is better to choose as S, the entity type with total participation in RT Include all the simple attributes (or simple components of composite attributes) of the 1:1 relationship type RT as attributes of S 17

18 Step 3: Example Binary 1:1 relationship type in the Company Database: MANAGES Ssn StartDate Number EMPLOYEE MANAGES DEPARTMENT DEPARTMENT [ Dnumber, Dname, DnumEmp, #MGRSsn, MgrStartDate ] DEPARTMENT serves in the role of S because its participation in the MANAGES relationship type is total (every department has a manager) Include the primary key of the EMPLOYEE relation as a foreign key in the DEPARTMENT relation (renamed MGRSsn) Include the simple attribute StartDate of the MANAGES relation (renamed MGRStartDate) 18

19 Schema (in progress) EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary ] DEPARTMENT [ Dnumber, Dname, DnumEmp, #MGRSsn, MgrStartDate ] PROJECT [ Pno, Pname, Plocation ] DEPENDENT [ ESsn, DepName, Sex, BirthDate, Relationship ] 19

20 Step 4: Binary 1:N Relationship For each (non-weak) binary 1:N relationship type (RT), identify relation S that represents the participating entity type at the N-side of the relationship type Include as foreign key of S the primary key of relation T that represents the other entity type participating in RT Include any simple attributes (or simple components of composite attributes) of the 1:N relationship type as attributes of S 20

21 Step 4: Example Binary 1:N relationship types in the Company Database: WORKS_FOR, CONTROLS and SUPERVISION EMPLOYEE Ssn Number N 1 WORK_FOR DEPARTMENT EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary, #Dnumber ] Where primary key of the DEPARTMENT relation is included as a foreign key in the EMPLOYEE relation (rename Dnumber) 21

22 Step 4: Example Binary 1:N relationship types in the Company Database: WORKS_FOR, CONTROLS and SUPERVISION DEPARTMENT Number 1 CONTROLS N PNumber PROJECT [ Pno, Pname, Plocation, #Dnumber ] Where primary key of the DEPARTMENT relation is included as a foreign key in the PROJECT relation (renamed Dnumber) PROJECT 22

23 Step 4: Example Binary I:N relationship types in the Company Database: WORKS_FOR, CONTROLS and SUPERVISION EMPLOYEE supervisor supervise 1 N SUPERVISION EMPLOYEE [Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary, #Dnumber, #SuperSsn ] Where primary key of the EMPLOYEE relation is included as a foreign key within the EMPLOYEE relation (called SuperSsn) Note the recursive relationship! Ssn SSsn 23

24 Schema (in progress) EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary, #Dnumber, #SuperSsn ] DEPARTMENT [ Dnumber, Dname, DnumEmp, #MGRSsn, MgrStartDate ] PROJECT [ Pno, Pname, Plocation, #Dnumber ] DEPENDENT [ ESsn, DepName, Sex, BirthDate, Relationship ] 24

25 Step 5: Binary M:N Relationship For each binary M:N relationship type (RT), create a new relation S to represent RT Include as foreign key of S the primary keys of the relations that represent the participating entity types in RT The combination of foreign keys will form the primary key of S (Note: cannot represent the M:N using a single foreign key in one relation because of the M:N cardinality ratio) Include any simple attributes (or simple components of composite attributes) of the M:N relationship type as attributes of S. 25

26 Step 5: Example Binary M:N relationship type in the Company Database: WORKS_ON EMPLOYEE WORKS_ON [ ESsn, Pno, Hours ] Ssn Number N WORK_FOR N DEPARTMENT Hours Where WORKS_ON includes the primary keys of the PROJECT and EMPLOYEE relations as foreign keys The primary key of WORKS_ON is the combination of the foreign key attributes (renamed to Pno and ESsn respectively) HOURS in WORKS_ON represents the attribute of the relationship type 26

27 Schema (in progress) EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary, #Dnumber, #SuperSsn ] DEPARTMENT [ Dnumber, Dname, DnumEmp, #MGRSsn, MgrStartDate ] PROJECT [ Pno, Pname, Plocation, #Dnumber ] DEPENDENT [ ESsn, DepName, Sex, BirthDate, Relationship ] WORKS_ON [ ESsn, Pno, Hours ] 27

28 More on M:N Mapping Note that 1:1 and 1:N relationships can be mapped in the same way as M:N Advantageous when few relationship instances exist (Sparse 1:1 Relationship) as it reduces the number of nulls that appear as foreign key values 28

29 Sparse 1:1 Relationship PK2 NK2 PK1 as FK Null Null PK1 X NK1 PK2 NK2 PK1 X NK1 A B C X Y Y A X A Null B C Y Null Y Y B C Y No Nulls as Foreign Keys Standard Implementation M:N Implementation 29

30 Step 6: Multivalued Attributes For each multi-valued attribute A, create a new relation R that includes an attribute corresponding to A plus the primary key K (as a foreign key of R) of the relation that represents the entity type or relationship type that has A as an attribute The primary key of R is the combination of attributes A & K If the multi-valued attribute is composite, include its simple components 30

31 Step 6: Example Multi-valued attributes in the Company Database: Locations DEPT_LOCS [ DNumber, Dlocation ] Name Number DEPARTMENT Locations Where primary key of DEPT_LOCS is the combination of {DNumber, DLocation} Attribute DLocation will represent the multivalued attributes Locations of DEPARTMENT Attribute DNumber (as foreign key) represents the primary key of the DEPARTMENT relation 31

32 Final Schema EMPLOYEE [ Ssn, Fname, Minit, Lname, Bdate, Address, Sex, Salary, #Dnumber, #SuperSsn ] DEPARTMENT [ Dnumber, Dname, DnumEmp, #MGRSsn, MgrStartDate ] PROJECT [ Pno, Pname, Plocation, #Dnumber ] DEPENDENT [ ESsn, DepName, Sex, BirthDate, Relationship ] WORKS_ON [ ESsn, Pno, Hours ] DEPT_LOCS [ DNumber, Dlocation ] 32

33 Step 7: N-ary Relationship Type For each n-ary relationship type (RT), create a new relation S to represent RT. Include as foreign key attributes of S the primary keys of the relations that represent the participating entity types in RT Include any simple attributes of the n-ary relationship type The combination of foreign keys referencing the relations representing the participating entity types is used to form primary key of S 33

34 Special case:n-ary Relationship If the participation constraint (min,max) of one of the entity types E participating in RT has max = 1, then the primary key of S need not include the foreign key attribute that references the relation E 34

35 N-ary Mapping Examples Ternary relationship Ternary relationship with participation constraint of one entity type having max=1 Weak entity with three owners Semantically different representation of relationship between 3 entities 35

36 Ternary relationship Sname Quantity ProjName SUPPLIER (1,N) SUPPLY (1,N) PROJECT PartNo (1,N) PART SUPPLIER [ Sname,... ] PROJECT [ ProjName,... ] PART [ PartNo,... ] SUPPLY [ SName, ProjName, PartNo, Quantity ] 36

37 Ternary relationship (max=1) Participation constraint with max = 1 (Only one Supplier for each Project/Part) Sname SUPPLIER (1,1) PartNo Quantity SUPPLY (1,N) (1,N) ProjName PROJECT PART SUPPLIER [ Sname,... ] PROJECT [ ProjName,... ] PART [ PartNo,... ] SUPPLY [ ProjName, PartNo, #Sname, Quantity ] 37

38 Weak entity with three owners Sname Quantity ProjName SUPPLIER 1 SS N N 1 SUPPLY SPJ PROJECT N PartNo SP PART 1 SUPPLIER [ Sname,... ] PROJECT [ ProjName,... ] PART [ PartNo,... ] SUPPLY [ SName, ProjName, PartNo, Quantity ] Same as ternary relationship 38

39 Relationships between 3 Entities Sname ProjName SUPPLIER M CAN_SUPPLY M PartNo SUPPLIES N PROJECT M USES Semantically different from ternary relationship N PART N SUPPLIER [Sname,... ] PROJECT [ProjName,... ] PART [PartNo,... ] SUPPLIES [SName, ProjName] CANSUPPLY [SName, PartNo] USES [PartNo, ProjName] 39

40 Contents Entity-Relationship to Relational Mapping Steps for mapping a basic ER diagram to a relational schema Uses the Company database example to illustrate the concepts Design choices in the ER Model and their impact on the resulting relational schema 40

41 Expressibility of ER Constraints play an important role in determining the best database design for an enterprise. Several kinds of integrity constraints can be expressed in the ER model, e.g., key constraints, participation constraints. Some foreign key constraints are also implicit in the definition of a relationship set. Some constraints (notably, functional dependencies) cannot be expressed in the ER model. Some additional constructs have not been discussed: ISA hierarchies, and aggregation. There are many variations on ER model 41

42 Subjectivity of ER Design ER model is a means of capturing user s data requirements. However, different designers may interpret the semantics of the user s requirements differently This may result in the same UoD being represented by different ER diagrams because of different Design Choices These design choices in the ER Model impact on the resulting relational schema 42

43 What are Design Choices? Should a concept be modeled as an entity or an attribute? Should a concept be modeled as an entity or a relationship? Should a concept be modeled as a weak entity or a complex (composite, multivalued) attribute Is a relationship binary or ternary?? 43

44 Entity vs. Attribute enr-dept gives the enrolling department for a Student ofr-dept gives the offering department for a Course A designer may choose to create an entity type Department with a single attribute dname. Other attributes for Department (Hod, dbudget) may be discovered later name sno Enr-dept Student Studies name sno Enr-dept Student Studies enrol Department dname Hod ctitle ccd ofr-dept Course ctitle ccd ofr-dept Course offer dbudget 44

45 Entity vs. Relationship Works_In2 does not allow an employee to work in a project more than once. Works_In3 allows an employee to work in the same project more than once. Can an employee work in the same project, for the same period under two different positions? name from ssn add Employees name ssn add Employees from to pos Works_In2 EPH pid pid pos pname budget Projects pname budget Projects to Works-In3 45

46 Weak Entity vs. Complex Attrib If a weak entity participates in other relationship types, besides the identifying relationship, then it has to be modeled as a weak entity If the weak entity has only one attribute, then it may be modeled as a multivalued attribute of the owner entity name ssn add Employees name ssn Employees add Works_In2 dname dname Dependents 46

47 Binary vs. Ternary Relationships ssn name add dname dbudget If a project is controlled by, and an employee works in only one department, the ternary relationship is inappropriate EPD [ssn, dname, projid] (90, CSEE, WF99) (90, CSEE, Hydro88) (87, CSEE, Hydro88) (87, CSEE, Spark4) (32, Biology,Gen2000) 1 Employees EPD Department M N projid Project cost name ssn Employees M Assigned-to add 1 Works-In M projid cost dname dbudget Department 1 Controlled N Project N 47

48 From UoD to Database Correctness (How can we be sure?) semantic non-ambiguity (unique name and elementary value) minimum representation (no redundancy and no derivables) Completeness (Is it good for all applications?) Everything in UoD is represented Everything expressed by the model is true in UoD 48

49 Example Exercise Extract the conceptual model (ER DIAGRAM) from a given user specification Map the conceptual model to a RELATIONAL SCHEMA Refine the relational schema using functional dependencies and normalization (Next Module) 49

50 Specifications Sebuah bank, yang dikenali dari code, name dan head office address, dapat memiliki beberapa branches. Setiap branch untuk bank tertentu memiliki branch number and address. Satu cabang dapat memiliki beberapa account, masingmasing diidentifikasi dengan AC number. Setiap account memiliki type, current balance, dan satu atau lebih account holder. Satu cabang dapat memilik pinjaman, masing-masing pinjaman dikenali dari unique loan number, type, amount dan satu atau lebih loan holders Nama, alamat, telepon dan id dari semua pelanggan (account dan pinjaman) dari setiap bank dicatat dan dipelihara. 50

51 ER Diagram Code Name HO-Addr Addr Branch-No BANK 1 BRANCHES N BANK-BRANCH 51

52 ER Diagram Code Name HO-Addr Addr Branch-No BANK 1 BRANCHES N BANK-BRANCH ACNo Type ACCOUNT N ACCTS 1 Balance 52

53 ER Diagram Code Name HO-Addr Addr Branch-No BANK 1 BRANCHES N BANK-BRANCH ACNo Type ACCOUNT N ACCTS 1 1 Balance LoanNo LOANS Type LOAN N Amount 53

54 ER Diagram Code Name HO-Addr Addr Branch-No BANK 1 BRANCHES N BANK-BRANCH ACNo Type ACCOUNT N ACCTS 1 1 LOANS Balance N AHOLDER LoanNo Type Amount M N LOAN N CUSTOMER LHOLDER M SSN Name Addr Phones 54

55 Relational Schema BANK [Code, Name, HOAddr] BRANCH [BankCode, BranchNo, Addr] ACCOUNT [ACNo, Type, Balance, BankCode, BranchNo] LOAN [LoanNo, Type, Amount, BankCode, BranchNo] CUSTOMER [SSN, Name, Address] CUSTPHONE [SSN, Phone] ACCOUNT-HOLDER [ACNo, SSN] LOAN-HOLDER [LoanNo, SSN] 55

56 Review Seven mapping steps address basic constructs that appear on ER diagrams The result is a relational database schema that exhibits good design characteristics There are other ER constructs that we have not addressed ER design is subjective. There are often several ways to model a given scenario! Analyzing alternatives can be tricky, especially for a large enterprise. ER to Relational Mapping is a starting point. Resulting relational schema has to be analyzed and refined further to achieve optimal design, using functional dependency information and techniques such as normalization (Next Module) 56

ER & EER to Relational Mapping. Chapter 9 1

ER & EER to Relational Mapping. Chapter 9 1 ER & EER to Relational Mapping Chapter 9 1 Figure 3.2 ER schema diagram for the company database. Fname Minit Lname Number Name Address N 1 WORKS_FOR Name Locations Sex Salary Ssn Bdate EMPLOYEE NumberOfEmployees

More information

Relational Schema. CS 4700/6700 A Sample of Small Database Design Using Microsoft Access

Relational Schema. CS 4700/6700 A Sample of Small Database Design Using Microsoft Access CS 4700/6700 A Sample of Small Database Design Using Microsoft Access Company relational database schema from the textbook (Fundamentals of Database systems, 6 th Edition, by Ramez Elmasri and Shamkant

More information

CSC 443 Data Base Management Systems. Basic SQL

CSC 443 Data Base Management Systems. Basic SQL CSC 443 Data Base Management Systems Lecture 6 SQL As A Data Definition Language Basic SQL SQL language Considered one of the major reasons for the commercial success of relational databases SQL Structured

More information

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model

Chapter 3. Data Modeling Using the Entity-Relationship (ER) Model Chapter 3 Data Modeling Using the Entity-Relationship (ER) Model Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity

More information

The Entity-Relationship Model

The Entity-Relationship Model The Entity-Relationship Model Chapter 2 Slides modified by Rasmus Pagh for Database Systems, Fall 2006 IT University of Copenhagen Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Today

More information

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model

Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Chapter 7 Data Modeling Using the Entity- Relationship (ER) Model Copyright 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 7 Outline Using High-Level Conceptual Data Models for

More information

Lab Assignment 0. 1. Creating a Relational Database Schema from ER Diagram, Populating the Database and Querying over the database with SQL

Lab Assignment 0. 1. Creating a Relational Database Schema from ER Diagram, Populating the Database and Querying over the database with SQL SS Chung Lab Assignment 0 1. Creating a Relational Database Schema from ER Diagram, Populating the Database and Querying over the database with SQL 1. Creating the COMPANY database schema using SQL (DDL)

More information

Conceptual Design Using the Entity-Relationship (ER) Model

Conceptual Design Using the Entity-Relationship (ER) Model Conceptual Design Using the Entity-Relationship (ER) Model Module 5, Lectures 1 and 2 Database Management Systems, R. Ramakrishnan 1 Overview of Database Design Conceptual design: (ER Model is used at

More information

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E)

THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) THE ENTITY- RELATIONSHIP (ER) MODEL CHAPTER 7 (6/E) CHAPTER 3 (5/E) 2 LECTURE OUTLINE Using High-Level, Conceptual Data Models for Database Design Entity-Relationship (ER) model Popular high-level conceptual

More information

{ PreviousEducation ( CollegeName, StartDate, EndDate, { Degree (DegreeName, Month, Year) }, { Transcript (CourseName, Semester, Year, Grade) } ) }

{ PreviousEducation ( CollegeName, StartDate, EndDate, { Degree (DegreeName, Month, Year) }, { Transcript (CourseName, Semester, Year, Grade) } ) } Tutorial 3 Solution Exercise1: Exercise 2: { PreviousEducation ( CollegeName, StartDate, EndDate, { Degree (DegreeName, Month, Year) }, { Transcript (CourseName, Semester, Year, Grade) } ) } Exercise 3:

More information

CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL

CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL Chapter 3: Data Modeling Using the Entity-Relationship Model 1 CHAPTER 3: DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL Answers to Selected Exercises 3.16 Consider the following set of requirements

More information

Part A: Data Definition Language (DDL) Schema and Catalog CREAT TABLE. Referential Triggered Actions. CSC 742 Database Management Systems

Part A: Data Definition Language (DDL) Schema and Catalog CREAT TABLE. Referential Triggered Actions. CSC 742 Database Management Systems CSC 74 Database Management Systems Topic #0: SQL Part A: Data Definition Language (DDL) Spring 00 CSC 74: DBMS by Dr. Peng Ning Spring 00 CSC 74: DBMS by Dr. Peng Ning Schema and Catalog Schema A collection

More information

2. Conceptual Modeling using the Entity-Relationship Model

2. Conceptual Modeling using the Entity-Relationship Model ECS-165A WQ 11 15 Contents 2. Conceptual Modeling using the Entity-Relationship Model Basic concepts: entities and entity types, attributes and keys, relationships and relationship types Entity-Relationship

More information

CSC 742 Database Management Systems

CSC 742 Database Management Systems CSC 742 Database Management Systems Topic #4: Data Modeling Spring 2002 CSC 742: DBMS by Dr. Peng Ning 1 Phases of Database Design Requirement Collection/Analysis Functional Requirements Functional Analysis

More information

Entity-Relationship Model

Entity-Relationship Model UNIT -2 Entity-Relationship Model Introduction to ER Model ER model is represents real world situations using concepts, which are commonly used by people. It allows defining a representation of the real

More information

Part 4: Database Language - SQL

Part 4: Database Language - SQL Part 4: Database Language - SQL Junping Sun Database Systems 4-1 Database Languages and Implementation Data Model Data Model = Data Schema + Database Operations + Constraints Database Languages such as

More information

Review: Participation Constraints

Review: Participation Constraints Review: Participation Constraints Does every department have a manager? If so, this is a participation constraint: the participation of Departments in Manages is said to be total (vs. partial). Every did

More information

SQL-99: Schema Definition, Basic Constraints, and Queries

SQL-99: Schema Definition, Basic Constraints, and Queries 8 SQL-99: Schema Definition, Basic Constraints, and Queries The SQL language may be considered one of the major reasons for the success of relational databases in the commercial world. Because it became

More information

Chapter 8. SQL-99: SchemaDefinition, Constraints, and Queries and Views

Chapter 8. SQL-99: SchemaDefinition, Constraints, and Queries and Views Chapter 8 SQL-99: SchemaDefinition, Constraints, and Queries and Views Data Definition, Constraints, and Schema Changes Used to CREATE, DROP, and ALTER the descriptions of the tables (relations) of a database

More information

Introduction to SQL: Data Retrieving

Introduction to SQL: Data Retrieving Introduction to SQL: Data Retrieving Ruslan Fomkin Databasdesign för Ingenjörer 1056F Structured Query Language (SQL) History: SEQUEL (Structured English QUery Language), earlier 70 s, IBM Research SQL

More information

Lab Manual. Database Systems COT-313 & Database Management Systems Lab IT-216

Lab Manual. Database Systems COT-313 & Database Management Systems Lab IT-216 Lab Manual Database Systems COT-313 & Database Management Systems Lab IT-216 Lab Instructions Several practicals / programs? Whether an experiment contains one or several practicals /programs One practical

More information

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd.

Databases Model the Real World. The Entity- Relationship Model. Conceptual Design. Steps in Database Design. ER Model Basics. ER Model Basics (Contd. The Entity- Relationship Model R &G - Chapter 2 A relationship, I think, is like a shark, you know? It has to constantly move forward or it dies. And I think what we got on our hands is a dead shark. Woody

More information

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations 1 Topics for this week: 1. Good Design 2. Functional Dependencies 3. Normalization Readings for this week: 1. E&N, Ch. 10.1-10.6; 12.2 2. Quickstart, Ch. 3 3. Complete the tutorial at http://sqlcourse2.com/

More information

The Entity-Relationship Model

The Entity-Relationship Model The Entity-Relationship Model Overview of Database Design Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Conceptual Design Entities Conceptual

More information

10CS54: DATABASE MANAGEMENT SYSTEM

10CS54: DATABASE MANAGEMENT SYSTEM CS54: DATABASE MANAGEMENT SYSTEM QUESTION BANK Chapter 1: Introduction to Database Systems Objective: Databases and data base system have become an essential component of everyday life in modern society.

More information

Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant

Chapter 2: Entity-Relationship Model. Entity Sets.  Example: specific person, company, event, plant Chapter 2: Entity-Relationship Model! Entity Sets! Relationship Sets! Design Issues! Mapping Constraints! Keys! E-R Diagram! Extended E-R Features! Design of an E-R Database Schema! Reduction of an E-R

More information

Figure 14.1 Simplified version of the

Figure 14.1 Simplified version of the Figure. Simplified version of the COMPANY relational database schema. EMPLOYEE f.k. ENAME SSN BDATE ADDRESS DNUMBER DEPARTMENT f.k. DNAME DNUMBER DMGRSSN DEPT_LOCATIONS f.k. DNUMBER DLOCATION PROJECT f.k.

More information

Database Design Methodologies

Database Design Methodologies Critical Success Factors in Database Design Database Design Methodologies o Work interactively with the users as much as possible. o Follow a structured methodology throughout the data modeling process.

More information

Foundations of Information Management

Foundations of Information Management Foundations of Information Management - WS 2012/13 - Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Data & Databases Data: Simple information Database:

More information

Advanced Database Models

Advanced Database Models Advanced Database Models Dr.-Ing. Eike Schallehn OvG Universität Magdeburg Fakultät für Informatik Institut für Technische und Betriebliche Informationssysteme 2015 Organization Lecture slides http://wwwiti.cs.uni-magdeburg.de/iti_db/lehre/adbm

More information

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys

Database Design Overview. Conceptual Design ER Model. Entities and Entity Sets. Entity Set Representation. Keys Database Design Overview Conceptual Design. The Entity-Relationship (ER) Model CS430/630 Lecture 12 Conceptual design The Entity-Relationship (ER) Model, UML High-level, close to human thinking Semantic

More information

New York University Computer Science Department Courant Institute of Mathematical Sciences

New York University Computer Science Department Courant Institute of Mathematical Sciences New York University Computer Science Department Courant Institute of Mathematical Sciences Homework #5 Solutions Course Title: Database Systems Instructor: Jean-Claude Franchitti Course Number: CSCI-GA.2433-001

More information

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps.

DATABASE DESIGN. - Developing database and information systems is performed using a development lifecycle, which consists of a series of steps. DATABASE DESIGN - The ability to design databases and associated applications is critical to the success of the modern enterprise. - Database design requires understanding both the operational and business

More information

b. Examine the following histories. Draw their serialization graph and identify which of them is serializable given reasons.

b. Examine the following histories. Draw their serialization graph and identify which of them is serializable given reasons. SELECTED SOLUTIONS TO THE EVISION EECISES: 1. In the following questions the operations are as follows rn() transaction n reads data item, wn () transaction n writes data item, cn transactions n commits,

More information

IV. The (Extended) Entity-Relationship Model

IV. The (Extended) Entity-Relationship Model IV. The (Extended) Entity-Relationship Model The Extended Entity-Relationship (EER) Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of EER Diagrams

More information

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage

not necessarily strictly sequential feedback loops exist, i.e. may need to revisit earlier stages during a later stage Database Design Process there are six stages in the design of a database: 1. requirement analysis 2. conceptual database design 3. choice of the DBMS 4. data model mapping 5. physical design 6. implementation

More information

Functional Dependency and Normalization for Relational Databases

Functional Dependency and Normalization for Relational Databases Functional Dependency and Normalization for Relational Databases Introduction: Relational database design ultimately produces a set of relations. The implicit goals of the design activity are: information

More information

Relational Schema Design

Relational Schema Design Relational Schema Design Using ER Methodology to Design Relational Database Schemas The Development Process Collect requirements. Analyze the requirements. Conceptually design the data (e.g., draw an ER

More information

Lecture 6. SQL, Logical DB Design

Lecture 6. SQL, Logical DB Design Lecture 6 SQL, Logical DB Design Relational Query Languages A major strength of the relational model: supports simple, powerful querying of data. Queries can be written intuitively, and the DBMS is responsible

More information

CHAPTER 8: SQL-99: SCHEMA DEFINITION, BASIC CONSTRAINTS, AND QUERIES

CHAPTER 8: SQL-99: SCHEMA DEFINITION, BASIC CONSTRAINTS, AND QUERIES Chapter 8: SQL-99: Schema Definition, Basic Constraints, and Queries 1 CHAPTER 8: SQL-99: SCHEMA DEFINITION, BASIC CONSTRAINTS, AND QUERIES Answers to Selected Exercises 8. 7 Consider the database shown

More information

Part 7: Object Oriented Databases

Part 7: Object Oriented Databases Part 7: Object Oriented Databases Junping Sun Database Systems 7-1 Database Model: Object Oriented Database Systems Data Model = Schema + Constraints + Relationships (Operations) A logical organization

More information

VIEWS virtual relation data duplication consistency problems

VIEWS virtual relation data duplication consistency problems VIEWS A virtual relation that is defined from other preexisting relations Called the defining relations of the view A view supports multiple user perspectives on the database corresponding to different

More information

Chapter 2: Entity-Relationship Model. E-R R Diagrams

Chapter 2: Entity-Relationship Model. E-R R Diagrams Chapter 2: Entity-Relationship Model What s the use of the E-R model? Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E-R Diagram Extended E-R Features Design of an E-R Database Schema

More information

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3 The Relational Model Chapter 3 Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase,

More information

Designing a Database Schema

Designing a Database Schema Week 10: Database Design Database Design From an ER Schema to a Relational One Restructuring an ER schema Performance Analysis Analysis of Redundancies, Removing Generalizations Translation into a Relational

More information

Databases and BigData

Databases and BigData Eduardo Cunha de Almeida eduardo.almeida@uni.lu Outline of the course Introduction Database Systems (E. Almeida) Distributed Hash Tables and P2P (C. Cassagnes) NewSQL (D. Kim and J. Meira) NoSQL (D. Kim)

More information

XV. The Entity-Relationship Model

XV. The Entity-Relationship Model XV. The Entity-Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R Diagrams and Business Rules The

More information

OVERVIEW 1.1 DATABASE MANAGEMENT SYSTEM (DBMS) DEFINITION:-

OVERVIEW 1.1 DATABASE MANAGEMENT SYSTEM (DBMS) DEFINITION:- 1 1 OVERVIEW Topics Covered: 1.1 Database management system 1.2 Data Independence 1.3 Data Abstraction 1.4 Data Models 1.5 DBMS Architecture 1.6 Users of DBMS 1.7 Overview of Conventional Data Models 1.1

More information

Lecture 12: Entity Relationship Modelling

Lecture 12: Entity Relationship Modelling Lecture 12: Entity Relationship Modelling The Entity-Relationship Model Entities Relationships Attributes Constraining the instances Cardinalities Identifiers Generalization 2004-5 Steve Easterbrook. This

More information

The Entity-Relationship Model

The Entity-Relationship Model The Entity-Relationship Model 221 After completing this chapter, you should be able to explain the three phases of database design, Why are multiple phases useful? evaluate the significance of the Entity-Relationship

More information

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1

The Relational Model. Ramakrishnan&Gehrke, Chapter 3 CS4320 1 The Relational Model Ramakrishnan&Gehrke, Chapter 3 CS4320 1 Why Study the Relational Model? Most widely used model. Vendors: IBM, Informix, Microsoft, Oracle, Sybase, etc. Legacy systems in older models

More information

Chapter 2: Entity-Relationship Model

Chapter 2: Entity-Relationship Model Chapter 2: Entity-Relationship Model Entity Sets Relationship Sets Design Issues Mapping Constraints Keys E R Diagram Extended E-R Features Design of an E-R Database Schema Reduction of an E-R Schema to

More information

Foundations of Information Management

Foundations of Information Management Foundations of Information Management - WS 2009/10 Juniorprofessor Alexander Markowetz Bonn Aachen International Center for Information Technology (B-IT) Alexander Markowetz Born 1976 in Brussels, Belgium

More information

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model

COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model COMP 378 Database Systems Notes for Chapter 7 of Database System Concepts Database Design and the Entity-Relationship Model The entity-relationship (E-R) model is a a data model in which information stored

More information

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Chapter 4. Entity: an object that is involved in the enterprise

Database Design. Database Design I: The Entity-Relationship Model. Entity Type (con t) Chapter 4. Entity: an object that is involved in the enterprise Database Design Database Design I: The Entity-Relationship Model Chapter 4 Goal: specification of database schema Methodology: Use E-R R model to get a high-level graphical view of essential components

More information

Summary on Chapter 4 Basic SQL

Summary on Chapter 4 Basic SQL Summary on Chapter 4 Basic SQL SQL Features Basic SQL DDL o Includes the CREATE statements o Has a comprehensive set of SQL data types o Can specify key, referential integrity, and other constraints Basic

More information

Relational Normalization: Contents. Relational Database Design: Rationale. Relational Database Design. Motivation

Relational Normalization: Contents. Relational Database Design: Rationale. Relational Database Design. Motivation Relational Normalization: Contents Motivation Functional Dependencies First Normal Form Second Normal Form Third Normal Form Boyce-Codd Normal Form Decomposition Algorithms Multivalued Dependencies and

More information

7.1 The Information system

7.1 The Information system Chapter 7. Database Planning, Design and Administration Last few decades have seen proliferation of software applications, many requiring constant maintenance involving: correcting faults, implementing

More information

Data Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4

Data Modeling. Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Database Systems: The Complete Book Ch. 4.1-4.5, 7.1-7.4 Data Modeling Schema: The structure of the data Structured Data: Relational, XML-DTD, etc Unstructured Data: CSV, JSON But where does

More information

Requirement Analysis & Conceptual Database Design. Problem analysis Entity Relationship notation Integrity constraints Generalization

Requirement Analysis & Conceptual Database Design. Problem analysis Entity Relationship notation Integrity constraints Generalization Requirement Analysis & Conceptual Database Design Problem analysis Entity Relationship notation Integrity constraints Generalization Introduction: Lifecycle Requirement analysis -> Text Conceptual Design

More information

Introduction to Database Systems CS4320/CS5320. CS4320/4321: Introduction to Database Systems. CS4320/4321: Introduction to Database Systems

Introduction to Database Systems CS4320/CS5320. CS4320/4321: Introduction to Database Systems. CS4320/4321: Introduction to Database Systems Introduction to Database Systems CS4320/CS5320 Instructor: Johannes Gehrke http://www.cs.cornell.edu/johannes johannes@cs.cornell.edu CS4320/CS5320, Fall 2012 1 CS4320/4321: Introduction to Database Systems

More information

Database Management Systems

Database Management Systems Database Management Systems 1. Introduction Introduction; An example; Characteristics of Database approach; Actors on the screen; Workers behind the scene; Advantages of using DBMS approach; A brief history

More information

CS 338 Join, Aggregate and Group SQL Queries

CS 338 Join, Aggregate and Group SQL Queries CS 338 Join, Aggregate and Group SQL Queries Bojana Bislimovska Winter 2016 Outline SQL joins Aggregate functions in SQL Grouping in SQL HAVING clause SQL Joins Specifies a table resulting from a join

More information

Lesson 8: Introduction to Databases E-R Data Modeling

Lesson 8: Introduction to Databases E-R Data Modeling Lesson 8: Introduction to Databases E-R Data Modeling Contents Introduction to Databases Abstraction, Schemas, and Views Data Models Database Management System (DBMS) Components Entity Relationship Data

More information

Converting E-R Diagrams to Relational Model. Winter 2006-2007 Lecture 17

Converting E-R Diagrams to Relational Model. Winter 2006-2007 Lecture 17 Converting E-R Diagrams to Relational Model Winter 2006-2007 Lecture 17 E-R Diagrams Need to convert E-R model diagrams to an implementation schema Easy to map E-R diagrams to relational model, and then

More information

How To Use The Database In Jdbc.Com On A Microsoft Gdbdns.Com (Amd64) On A Pcode (Amd32) On An Ubuntu 8.2.2 (Amd66) On Microsoft

How To Use The Database In Jdbc.Com On A Microsoft Gdbdns.Com (Amd64) On A Pcode (Amd32) On An Ubuntu 8.2.2 (Amd66) On Microsoft CS 7700 Transaction Design for Microsoft Access Database with JDBC Purpose The purpose of this tutorial is to introduce the process of developing transactions for a Microsoft Access Database with Java

More information

Database Design Process

Database Design Process Database Design Process Entity-Relationship Model From Chapter 5, Kroenke book Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning Problem:

More information

Database Systems. Session 3 Main Theme. Enterprise Data Modeling Using The Entity/Relationship (ER) Model. Dr. Jean-Claude Franchitti

Database Systems. Session 3 Main Theme. Enterprise Data Modeling Using The Entity/Relationship (ER) Model. Dr. Jean-Claude Franchitti Database Systems Session 3 Main Theme Enterprise Data Modeling Using The Entity/Relationship (ER) Model Dr. Jean-Claude Franchitti New York University Computer Science Department Courant Institute of Mathematical

More information

Unit 2.1. Data Analysis 1 - V2.0 1. Data Analysis 1. Dr Gordon Russell, Copyright @ Napier University

Unit 2.1. Data Analysis 1 - V2.0 1. Data Analysis 1. Dr Gordon Russell, Copyright @ Napier University Data Analysis 1 Unit 2.1 Data Analysis 1 - V2.0 1 Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes,

More information

Database Design Process

Database Design Process Entity-Relationship Model Chapter 3, Part 1 Database Design Process Requirements analysis Conceptual design data model Logical design Schema refinement: Normalization Physical tuning 1 Problem: University

More information

SQL Nested & Complex Queries. CS 377: Database Systems

SQL Nested & Complex Queries. CS 377: Database Systems SQL Nested & Complex Queries CS 377: Database Systems Recap: Basic SQL Retrieval Query A SQL query can consist of several clauses, but only SELECT and FROM are mandatory SELECT FROM

More information

RELATIONSHIP STRENGTH

RELATIONSHIP STRENGTH Connectivity and Cardinality The term connectivity is used to describe the relationship classification. Cardinality expresses the minimum and maximum number of entity occurrences associated with one occurrence

More information

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB Outline Database concepts Conceptual Design Logical Design Communicating with the RDBMS 2 Some concepts Database: an

More information

More SQL: Assertions, Views, and Programming Techniques

More SQL: Assertions, Views, and Programming Techniques 9 More SQL: Assertions, Views, and Programming Techniques In the previous chapter, we described several aspects of the SQL language, the standard for relational databases. We described the SQL statements

More information

Data Analysis 1. SET08104 Database Systems. Copyright @ Napier University

Data Analysis 1. SET08104 Database Systems. Copyright @ Napier University Data Analysis 1 SET08104 Database Systems Copyright @ Napier University Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship?

More information

The Relational Algebra

The Relational Algebra The Relational Algebra Relational set operators: The data in relational tables are of limited value unless the data can be manipulated to generate useful information. Relational Algebra defines the theoretical

More information

A Tool for Generating Relational Database Schema from EER Diagram

A Tool for Generating Relational Database Schema from EER Diagram A Tool for Generating Relational Schema from EER Diagram Lisa Simasatitkul and Taratip Suwannasart Abstract design is an important activity in software development. EER diagram is one of diagrams, which

More information

featuring data privacy Andres Avelino Campos Sainz A Project submitted in partial fulfillment of the requirements for the degree of

featuring data privacy Andres Avelino Campos Sainz A Project submitted in partial fulfillment of the requirements for the degree of An application to provide an interface to a mysql database located in the cloud featuring data privacy by Andres Avelino Campos Sainz A Project submitted in partial fulfillment of the requirements for

More information

Chapter 10. Functional Dependencies and Normalization for Relational Databases

Chapter 10. Functional Dependencies and Normalization for Relational Databases Chapter 10 Functional Dependencies and Normalization for Relational Databases Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of the Relation Attributes 1.2 Redundant

More information

Database Design Methodology

Database Design Methodology Database Design Methodology Three phases Database Design Methodology Logical database Physical database Constructing a model of the information used in an enterprise on a specific data model but independent

More information

Chapter 10 Functional Dependencies and Normalization for Relational Databases

Chapter 10 Functional Dependencies and Normalization for Relational Databases Chapter 10 Functional Dependencies and Normalization for Relational Databases Copyright 2004 Pearson Education, Inc. Chapter Outline 1 Informal Design Guidelines for Relational Databases 1.1Semantics of

More information

Theory of Relational Database Design and Normalization

Theory of Relational Database Design and Normalization Theory of Relational Database Design and Normalization (Based on Chapter 14 and some part of Chapter 15 in Fundamentals of Database Systems by Elmasri and Navathe) 1 Informal Design Guidelines for Relational

More information

SQL DDL. DBS Database Systems Designing Relational Databases. Inclusion Constraints. Key Constraints

SQL DDL. DBS Database Systems Designing Relational Databases. Inclusion Constraints. Key Constraints DBS Database Systems Designing Relational Databases Peter Buneman 12 October 2010 SQL DDL In its simplest use, SQL s Data Definition Language (DDL) provides a name and a type for each column of a table.

More information

Theory of Relational Database Design and Normalization

Theory of Relational Database Design and Normalization Theory of Relational Database Design and Normalization (Based on Chapter 14 and some part of Chapter 15 in Fundamentals of Database Systems by Elmasri and Navathe, Ed. 3) 1 Informal Design Guidelines for

More information

DataBase Management Systems Lecture Notes

DataBase Management Systems Lecture Notes 1 SHRI VISHNU ENGINEERING COLLEGE FOR WOMEN::BHIMAVARAM DEPARTMENT OF INFORMATION TECHNOLOGY DataBase Management Systems Lecture Notes UNIT-1 Data: It is a collection of information. The facts that can

More information

Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst

Outline. Data Modeling. Conceptual Design. ER Model Basics: Entities. ER Model Basics: Relationships. Ternary Relationships. Yanlei Diao UMass Amherst Outline Data Modeling Yanlei Diao UMass Amherst v Conceptual Design: ER Model v Relational Model v Logical Design: from ER to Relational Slides Courtesy of R. Ramakrishnan and J. Gehrke 1 2 Conceptual

More information

Winter 2003 1. Winter 2003 2

Winter 2003 1. Winter 2003 2 M Today s Lecture Database design through ER diagrams Creating and modifying relations, specifying integrity constraints using SQL Translate ER diagrams to relations A little on views Winter 2003 1 ai

More information

A brief overview of developing a conceptual data model as the first step in creating a relational database.

A brief overview of developing a conceptual data model as the first step in creating a relational database. Data Modeling Windows Enterprise Support Database Services provides the following documentation about relational database design, the relational database model, and relational database software. Introduction

More information

BİL 354 Veritabanı Sistemleri. Entity-Relationship Model

BİL 354 Veritabanı Sistemleri. Entity-Relationship Model BİL 354 Veritabanı Sistemleri Entity-Relationship Model Steps in building a DB application Pick application domain Conceptual design How can I describe that data? What data do I need for my application

More information

COURSE CODE: CIT 844 COURSE TITLE: ADVANCED DATABASE MANAGEMENT SYSTEM

COURSE CODE: CIT 844 COURSE TITLE: ADVANCED DATABASE MANAGEMENT SYSTEM NATIONAL OPEN UNIVERSITY OF NIGERIA COURSE CODE: CIT 844 COURSE TITLE: ADVANCED DATABASE MANAGEMENT SYSTEM CIT 844 ADVANCED DATABASE MANAGEMENT SYSTEM COURSE GIUDE ADVANCED DATABASE MANAGEMENT SYSTEM Course

More information

Lecture Notes INFORMATION RESOURCES

Lecture Notes INFORMATION RESOURCES Vilnius Gediminas Technical University Jelena Mamčenko Lecture Notes on INFORMATION RESOURCES Part I Introduction to Dta Modeling and MSAccess Code FMITB02004 Course title Information Resourses Course

More information

Chapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES

Chapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES 1 Chapter 5: FUNCTIONAL DEPENDENCIES AND NORMALIZATION FOR RELATIONAL DATABASES INFORMAL DESIGN GUIDELINES FOR RELATION SCHEMAS We discuss four informal measures of quality for relation schema design in

More information

AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL

AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL AVOIDANCE OF CYCLICAL REFERENCE OF FOREIGN KEYS IN DATA MODELING USING THE ENTITY-RELATIONSHIP MODEL Ben B. Kim, Seattle University, bkim@seattleu.edu ABSTRACT The entity-relationship (ER model is clearly

More information

Data Modeling: Part 1. Entity Relationship (ER) Model

Data Modeling: Part 1. Entity Relationship (ER) Model Data Modeling: Part 1 Entity Relationship (ER) Model MBA 8473 1 Cognitive Objectives (Module 2) 32. Explain the three-step process of data-driven information system (IS) development 33. Examine the purpose

More information

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University

CS 377 Database Systems. Database Design Theory and Normalization. Li Xiong Department of Mathematics and Computer Science Emory University CS 377 Database Systems Database Design Theory and Normalization Li Xiong Department of Mathematics and Computer Science Emory University 1 Relational database design So far Conceptual database design

More information

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER

three Entity-Relationship Modeling chapter OVERVIEW CHAPTER three Entity-Relationship Modeling CHAPTER chapter OVERVIEW 3.1 Introduction 3.2 The Entity-Relationship Model 3.3 Entity 3.4 Attributes 3.5 Relationships 3.6 Degree of a Relationship 3.7 Cardinality of

More information

How To Create A Table In Sql 2.5.2.2 (Ahem)

How To Create A Table In Sql 2.5.2.2 (Ahem) Database Systems Unit 5 Database Implementation: SQL Data Definition Language Learning Goals In this unit you will learn how to transfer a logical data model into a physical database, how to extend or

More information

Database Design. Goal: specification of database schema Methodology: E-R Model is viewed as a set of

Database Design. Goal: specification of database schema Methodology: E-R Model is viewed as a set of Database Design Goal: specification of database schema Methodology: Use E-R model to get a high-level graphical view of essential components of the model and how they are related Convert E-R diagram to

More information

Logical Schema Design: The Relational Data Model

Logical Schema Design: The Relational Data Model Logical Schema Design: The Relational Data Model Basics of the Relational Model From Conceptual to Logical Schema Logical Schema Design Select data model Hierarchical data model: hierarchies of record

More information

Fundamentals of Database Systems. Laboratory Manual 1. Rajshekhar Sunderraman. Georgia State University. August 2010

Fundamentals of Database Systems. Laboratory Manual 1. Rajshekhar Sunderraman. Georgia State University. August 2010 Fundamentals of Database Systems Laboratory Manual 1 Rajshekhar Sunderraman Georgia State University August 2010 1 To accompany Elmasri and Navathe, Fundamentals of Database Systems, 6 th Edition, Addison-Wesley,

More information