Management of Information Systems Session 3

Size: px
Start display at page:

Download "Management of Information Systems Session 3"

Transcription

1 Management of Information Systems Session 3 Prof. Dr. Frank G. Goethals Information Systems lifecycle The role of a manager: 1. Define requirements! System Conception Line Leadership IS Leadership Line Leadership Design & Programming & Testing Implementation Operation IS Line Leadership IS Information systems lifecycle 1

2 Objectives w.r.t. this class 1. It should be clear to you as a future manager that you have the task to reveal your requirements to people of the IT department in a rigorous way! 2. Feel the importance of an Information System (TopConsulting Game) 3. You should be able to build models: 3.1 create a correct BPMN diagram, 3.2 understand a routing scheme, 3.3 build a UML class diagram, to make clear to the IT department what you are actually doing (/where you want changes) create a relational database specification (normalisation) 3.5 get data out of the database using SQL Creating a UML class diagram 2

3 Data modelling Developing a conceptual data model = modelling the information requirements of groups of users in an organisation, reflecting the reality, without paying attention to implementation details and limitations that are caused by the computerized databasesystem that will be used in the end. Companies typically use UML class diagrams. Such a model is then translated later into a relational Database. UML class diagram (TopConsulting) Customer ClientName: string {id} ExcellentCustomer: boolean 1..1 Gives is given by 1..* Request Request-ID: integer {id} WeekReceived: integer NrOfStudents: Integer Is requested in 0..* Concerns 1..1 Training ClassName: string 3

4 UML class diagram (Loyola) Student StudNumber: integer FirstName: string LastName: string Birthyear: integer 0..* Follows Followed by 1..* Course CourseID: integer CourseName: string ContactHours: integer Teaches 0..* Taught by Professor 0..1 ProfID: integer ProfFirstName: string ProfLastName: string Building blocks of a UML class diagram (Supplier delivers products) Associations Classes provides Attributes Supplier number Supplier name Supplier Phone Price Quantity in Stock and

5 UML class diagrams provides Supplier number Supplier name Supplier Phone Price Quantity in Stock We need to find a way to store data concerning all suppliers and all products; not just one supplier or one product. Therefore, we make abstraction of details where different suppliers differ and and where different products differ. UML class diagram (Suppliers) Supplier SupNumber: integer{id} SupName: string SupPhone: integer 0..* Provides Provided by 1..* Product Price: integer ProdName: string {id} QuantityInStock: integer 5

6 UML diagrams: building blocks Classname Attributes Supplier Attribute types SupNumber: integer{id} SupName: string SupPhone: integer Signals primary key Every supplier thus has a different SupNumber UML diagrams: building blocks Asssociation: 2 directions Supplier SupNumber: integer{id} SupName: string SupPhone: integer 0..* Provides Provided by 1..* Product Price: integer ProdName: string {id} QuantityInStock: integer Cardinalities (Minimal cardinality: 0 or 1; Maximal cardinality: 1 or *) * * 6

7 Exercise 1: Music festivals You want to create a database with which music bands play on which summer festivals. On each festival there are one or more music bands. On the other hand some music bands don t play on any festival, while others play on one or more festivals. Each festival has got a unique name. You also want to keep track of the date of the festival and of the (one) contact person that is responsible for the festival organisation. You also store the year of foundation of the festival. Of the music bands, you can assume they have a unique name. You also want to store the date of foundation of the band and the official website URL of the band. Exercise 2: Pet shop You sell pets in your shop. Each animal has a name, a unique number, a gender, a breed and a birthdate. You want to be able to store for each animal what are its children. An animal can have zero, one or more children and for each animal you may have data stored on zero, one or both of its parents. You also want to store for which animal you have made publicity in some paper. For each paper in your database, you store the paper s (unique) name and the price for an advertisement. For each animal, publicity is made in zero, one or more papers. The other way around, a paper in your database has made publicity for at least one of your animals. You want to keep track of how many times you have made publicity for a specific animal in a specific paper. 7

8 UML class diagrams Unary associations Associations with an attribute?! 15 Exercise 4: Car owners You want to keep track of who owns or owned a specific car. A car owner has a unique ID, a name and an address. A registered car owner usually owns one or more cars (including second hand cars), but might exceptionally have no car for a short time span. You want to store what owner sold a car to what other owner (without storing what cars were sold exactly). Every owner bought cars from 1 or more other owners, but an owner did not necessarily sell a car. A car always belongs to exactly one car owner at a specific moment. Every car has a unique car registration number and is of a specific brand. You want to keep track of the year in which a car was bought by some owner. (You may assume a car owner only owns a specific car once: he does not sell it and buy it back later.) Cars are produced in exactly one plant. Each plant has a plant number and is located in a city. Also explicitly model that one Plant can produce cars for different brands. 8

9 3.4 Defining the tables in your database: normalization Companies store data in tables All tables together form a relational database Data for the Entity Type Student Field = Attribute Field (Attribute) value Record = Entity Last Name Studentnr DoB Major Smith /11/84 IS Mclaughlin /1/85 FIN Smith /1/81 MKT McGuyver /3/88 IS 9

10 - Must be unique Primary key - Thus: in your table with data: in the column of the primary key, every row should have a different value. A value that appears on one row in that column cannot appear on another row in that column. What if we just enter all information in one table? Imagine you have a book store Problems? 1. Redundancy (customer name, phone, book name, author, price) 2. Adding a potential customer who has not ordered yet Adding a book recently received from supplier (i.e., it has not been ordered by any customer) 3. Deleting an order (such as order # 4) 4. Modifying an attribute (Changing price of book named selfish gene ) Cause? Data is not structured properly (i.e., un-normalized) 10

11 Companies store data in tables All tables together form a relational database Logical Structure of the database: Tables are connected using Foreign Keys Primary Key Primary Key Supplier(SupplierNumber, SupplierName, SupplierPhone) Foreign Key 1 supplier can make many products Each product can be made by only one supplier Product(ProductID, ProductPrice, ProductQuantity, SupplierNumber ) 11

12 Primary Key Logical Structure of the database: Tables are connected using Foreign Keys Primary Key Foreign Key Foreign Key 1 customer can order many books 1 book can be ordered by many customers Primary Key Textual Representation of Tables (Relations) Customer (CustomerID, Name, Phone) Book (ISBN, Author, BookName, Price) Order (OrderNumber, CustomerID, ISBN, Date) Relational Databases Every table is called a relation. Supplier(SupplierNumber, SupplierName, SupplierPhone) Product(ProductID, ProductPrice, ProductQuantity, SupplierNumber) 12

13 Normalisation of relations Normalisation is a process that is applied to a set of relations in order to distribute the attribute types across several (new) relations so that the data model does not contain contradictions or redundancies and so that the use of the data does not cause anomalies. 1st normalisation step 2nd normalisation step 3rd normalisation step 0NF 1NF 2NF 3NF First normal form - 1NF A relation is in first normal form if all attribute types are atomic, single-valued attribute types. Single-valued: the attribute can only have one value e.g. a customer can only have one name Atomic: the attribute type cannot be split up meaningfully in smaller pieces e.g. a customer s first name CANNOT be split up meaningfully in smaller pieces <-> his address CAN be split up meaningfully. 13

14 First normal form - 1NF R 01 (Dnr, Dname, Dlocation) Assumption: a department can have several locations (and in one location there can be several departments) Solution: for an attribute type that is multi-valued: remove the attribute type Dlocation from the relation and create a new relation where Dlocation is stored together with the primary key from the relation where Dlocation was removed (Dnr) R 11 (Dnr, Dname) R 12 (Dnr, Dlocation) First normal form - 1NF R 01 (Enr, Ename, Project (Pnr, Pname, Pduration, Worked)) R 11 (Enr, Ename) R 12 (Enr, Pnr, Pname, Pduration, Worked) 14

15 Second normal form - 2NF A relation is in 2NF if the relation is in 1NF and every nonprime attribute is completely functionally dependent upon every possible primary key of the relation. Non-prime attribute: <-> A prime attribute is an attribute that is a part of primary key of the relation. A primary key is a minimal collection of attribute types in a relation for which it can be said that with each value of the key exactly one entity is indicated. Second normal form - 2NF A relation is in 2NF if the relation is in 1NF and every nonprime attribute is completely functionally Unique dependent number upon every possible primary key of the relation. Non-unique name Number name Complete functional dependence: 1. A collection of attributes Y is functionally dependent upon a collection of attributes X if, at every moment, the values of the X-component of an entity allow to determine the values of the Y-component: X Y. 2. A functional dependence is a complete functional dependence if dropping an attribute from X would imply that the functional dependence is lost. {Enr, Pnr} Worked {Enr, Pnr} PName 15

16 Second normal form - 2NF A relation is in 2NF if the relation is in 1NF and every non-prime attribute is completely functionally dependent upon every possible primary key of the relation. R 11 (Enr, Ename) R 12 (Enr, Pnr, Pname, Pduration, Worked) Solution: the non-prime attributes that are partially functionally dependent have to be moved to another, new relation which also includes the primary key upon which the attributes are completely functionally dependent. R 21 (Enr, Ename) R 22 (Enr, Pnr, Worked) R 23 (Pnr, Pname, Pduration) Third normal form - 3NF A relation is in 3NF if the relation is in 2NF and there are no non-prime attributes transitively dependent upon a possible primary key. Transitively dependent: X Z and Z Y Y is said to be transitively dependent upon X if a collection of attributes Z exists for which it is correct to say that Z is functionally dependent upon X and Y is functionally dependent upon Z, while Z is not a possible primary key of the relation. 16

17 Third normal form - 3NF A relation is in 3NF if the relation is in 2NF and there are no non-prime attributes transitively dependent upon a possible primary key. R 21 (Enr, Ename, Dnr, Dname, Mngr) Solution : move the non-prime attributes that are transitively dependent to another, new relation which gets as a primary key the attribute Dnr via which the transitive dependence was determined R 31 (Enr, Ename, Dnr) R 32 (Dnr, Dname, Mngr) Normalization of relations Exercise 2a Normalise the following relation in 0NF: Student(Studentnr, StudentName, StreetName, HouseNumber, PostalCode, City, Coursenr, CourseName, Profnr, ProfName) Assume that - a student only has one address, - a student follows several courses - different courses may have the same name, - a course is being taught by one professor

18 Normalization of relations Exercise 2b What needs to be changed to this model if a course could be taught by several professors? 35 Normalization of relations Exercise 3 You want to create a MySQL Database for a PetShop. You sell pets in your shop. Each animal has a name, a unique number, a gender, a breed and a birthdate. An animal can have zero, one or more children and for each animal you may have data stored on zero, one or both of its parents. You also want to store for which animal you have made publicity in some paper. For each paper you store the paper s (unique) name and the price for an advertisement. For each animal, publicity is made in zero, one or more papers. The other way around, a paper in your database has made publicity for at least one of your animals. You want to keep track of how many times you have made publicity for a specific animal in a specific paper ( NumberAdvertisements ).You should assume that different animals can have the same name, but that you only use the same name for animals of the same gender. The price for an advertisement is always the same in a specific paper. Write down the relations that would be used in the normalisation process. That is, write down the relations in 1NF, 2NF and 3NF, given the following 0NF: Animal (Aname, Anr, Agender, Abreed, Abirthdate, Achild, Pname, Padvertisementprice, Numberadvertisements) 36 18

19 Normalization of relations Exercise 4a Develop a relational database model, to store the information on the sales invoices of your company. An example of a sales invoice is given in the figure on the next slide. You may assume the following: - every invoice has a unique number, - clients may have the same name, - different products can have the same description. To create the 0NF, you can just put all attribute types on which you want to store data in a single relation called Sale. Hint: the Total and the Total amount are not included in the model. They can easily be derived by linking other attribute types. 37 Exercise 4a Quantity 0NF: Sale(InvoiceNo, ClientNo, Date, ClientName, StreetName, HouseNo, PostalCode, City, ProductNo, Description, Quantity, price) 38 19

20 Normalization of relations Exercise 4b What changes in your solution to exercise 4a if we assume that the Customers have a unique ClientName? What changes in your solution to exercise 4a if we assume that several Customers can live on the same address? What changes in your solution to exercise 4a if a customer can have several addresses? 39 Normalization of relations: Exercise 5 Create a relational database model for the ER model you created in the Personnel Administration exercise: Personnel-administration You need to store information on employees (their name, gender, address, birthdate and a unique employee number). You have to note what employee is controlling which other employees. More specifically each employee is controlling zero, one or more employees. On the other hand, each employee is directly controlled by zero or one employees. For each employee you want to keep track of the department (s)he is working for. Each employee works for exactly one department and each department has one or more employees. For each department you store the department name and location and a unique department number. A few employees manage an entire department (at most one department) and each department is managed by exactly one employee. Each employee can work on zero, one or more projects and each project can employ zero, one or more employees. For each project, you store its name and duration and a unique project number. You also want to store how many hours each employee has worked on a specific project. You also model explicitly that each department is executing zero, one or more projects and each project is assigned to exactly one department. Assume employees only have one address and departments only have one location. 0NF: Employee (Enr, Ename, Eaddress, Egender, Ebirthdate, LeaderEnr, Dnr, Dname, Dlocation, DMngr, Pnr, Pname, Pduration, HoursWorked, PDnr) MIS - Prof. Dr. F.G. Goethals 40 20

21 So now you can design a database What will you do with it? 3.5 Getting data out of a database using SQL Searching data Structured data vs. Unstructured data Search with SQL (Structured Query Language) Search with Google, 21

22 SQL (Structured Query Language) SELECT attribute types (= columns you want to see) FROM table names (= tables used in Select or Where statement) WHERE selection criteria (= rows you want to select); SELECT Book.Title, Book.ISBN, Book.Author FROM Book; MIS - Prof. Dr. F.G. Goethals SQL SELECT Book.Title, Book.ISBN FROM Book WHERE Book.Author="Paul McCartney"; 22

23 Combining data from different tables Book (Title, Author, Date, ISBN, Publisher) Author (Name, Birthdate, Country) SQL across different tables SELECT Book.Title, Book.ISBN, Book.Author, Author.Country FROM Book, Author WHERE Book.Author=Author.Name; MIS - Prof. Dr. F.G. Goethals 23

24 SQL across different tables SELECT Book.Title, Book.ISBN, Book.Author, Author.Country FROM Book, Author SQL SELECT Book.Title, Book.ISBN, Book.Author, Author.Country FROM Book, Author WHERE Author.Name = "Paul McCartney and Book.Author = Author.Name; 24

25 SQL Exercise1 Given the database used in the examples in the online movie: Book (Title, Author, Date, ISBN, Publisher) Author (Name, Birthdate, Country) Publisher (Name, StreetAddress, CityAndZipcode, Country) Retrieve the following data: 1. The name of all authors. 2. The country of the Publisher called Avon. 3. The title of the books written by Richard Bach and the birth date of that author. 4. The title and ISBN number of the books together with the author name and country of residence of the author as well as the publisher name and publisher country of the books of which the publisher lives in the U.S.A. 49 Given the following relational database: PurchaseOrder (ID, Date) Product (ID, Name, AvailableQuantity, OrderPoint, SupplierID) Supplier (ID, Name, Phone, City) ProductPurchase (ProductID, PurchaseOrderID, quantity, price) SQL Exercise 2 This database tracks the purchase orders that were placed with suppliers for specific products. Each product can only be bought with one supplier. Several products can be bought in one purchase order (an n:m relation resulting in a separate table: ProductPurchase where the link between products and purchase orders are made). The price in the ProductPurchase table is the unit price that was used for the specific product in this specific purchase order. Retrieve the following data: a) The productids of all products bought on 14/09/2010. b) The product names of all products bought on 14/09/2010 c) The names of the suppliers where products were ordered on 14/09/2010 together with the names of those products. d) The date of the purchase orders for the product with product name corn where the purchase (unit) price was below

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Detailed Data Modelling: Attribute Collection and Normalisation of Data Detailed Data Modelling IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling: Attribute Collection and Normalisation of Data The objective of detailed data modelling is to develop a detailed

More information

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes

Detailed Data Modelling. Detailed Data Modelling. Detailed Data Modelling. Identifying Attributes. Attributes IMS1002 /CSE1205 Systems Analysis and Design Detailed Data Modelling The objective of detailed data modelling is to develop a detailed data structure that: Detailed Data Modelling: Attribute Collection

More information

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data.

The DBMS accepts requests for data from the application program and instructs the operating system to transfer the appropriate data. Managing Data Data storage tool must provide the following features: Data definition (data structuring) Data entry (to add new data) Data editing (to change existing data) Querying (a means of extracting

More information

The Entity-Relationship Model (ER Model) - Part 2

The Entity-Relationship Model (ER Model) - Part 2 Lecture 4 The Entity-Relationship Model (ER Model) - Part 2 By Michael Hahsler Based on slides for CS145 Introduction to Databases (Stanford) Lecture 4 > Section 2 What you will learn about in this section

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms Relation Primary key Foreign key Referential integrity Field

More information

L12: ER modeling 5. CS3200 Database design (sp18 s2) 2/22/2018

L12: ER modeling 5. CS3200 Database design (sp18 s2)   2/22/2018 L12: ER modeling 5 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/22/2018 200 Announcements! Keep bringing your name plates J Exam 1 discussion: questions on grading: Piazza,

More information

3 February 2011 CSE-3421M Test #1 p. 1 of 14. CSE-3421M Test #1. Design

3 February 2011 CSE-3421M Test #1 p. 1 of 14. CSE-3421M Test #1. Design 3 February 2011 CSE-3421M Test #1 p. 1 of 14 CSE-3421M Test #1 Design Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: Winter 2011 Answer the following

More information

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams

Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition. Chapter 7 Data Modeling with Entity Relationship Diagrams Database Principles: Fundamentals of Design, Implementation, and Management Tenth Edition Chapter 7 Data Modeling with Entity Relationship Diagrams Objectives In this chapter, students will learn: The

More information

MIS2502: Data Analytics Relational Data Modeling. Jing Gong

MIS2502: Data Analytics Relational Data Modeling. Jing Gong MIS2502: Data Analytics Relational Data Modeling Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Where we are Now we re here Data entry Transactional Database Data extraction Analytical

More information

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos

2004 John Mylopoulos. The Entity-Relationship Model John Mylopoulos. The Entity-Relationship Model John Mylopoulos XVI. The Entity-Relationship Model The Entity Relationship Model The Entity-Relationship Model Entities, Relationships and Attributes Cardinalities, Identifiers and Generalization Documentation of E-R

More information

MIS2502: Data Analytics Relational Data Modeling. Jing Gong

MIS2502: Data Analytics Relational Data Modeling. Jing Gong MIS2502: Data Analytics Relational Data Modeling Jing Gong gong@temple.edu http://community.mis.temple.edu/gong Where we are Now we re here Data entry Transactional Database Data extraction Analytical

More information

BSc (Hons) Computer Science with Network Security. Examinations for / Semester1

BSc (Hons) Computer Science with Network Security. Examinations for / Semester1 BSc (Hons) Computer Science with Network Security Cohort: BCNS/14/FT Examinations for 2014-2015 / Semester1 MODULE: DATABASE DESIGN MODULE CODE: DBT 1111C Duration: 2 Hours 30 Mins Instructions to Candidates:

More information

MIS Database Systems Entity-Relationship Model.

MIS Database Systems Entity-Relationship Model. MIS 335 - Database Systems Entity-Relationship Model http://www.mis.boun.edu.tr/durahim/ Ahmet Onur Durahim Learning Objectives Database Design Main concepts in the ER model? ER Diagrams Database Design

More information

Lecture 5 STRUCTURED ANALYSIS. PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall Bühnová, Sochor, Ráček

Lecture 5 STRUCTURED ANALYSIS. PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall Bühnová, Sochor, Ráček Lecture 5 STRUCTURED ANALYSIS PB007 So(ware Engineering I Faculty of Informa:cs, Masaryk University Fall 2015 1 Outline ² Yourdon Modern Structured Analysis (YMSA) Context diagram (CD) Data flow diagram

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 Acknowledgment:

More information

Relational Model. Courses B0B36DBS, A7B36DBS: Database Systems. Practical Class 03: Martin Svoboda

Relational Model. Courses B0B36DBS, A7B36DBS: Database Systems. Practical Class 03: Martin Svoboda Courses B0B36DBS, A7B36DBS: Database Systems Practical Class 03: Relational Model Martin Svoboda 7. 3. 2017 Faculty of Electrical Engineering, Czech Technical University in Prague Exercise 1 Create an

More information

1. Database Design. Assignment 2: Database Design A Basic ER Diagram and a Data Dictionary (40 points)

1. Database Design. Assignment 2: Database Design A Basic ER Diagram and a Data Dictionary (40 points) CCT395, Fall 2010, Topics in CCIT: Databases Assignment 2: Database Design Due on October 20, 2010, at the beginning of class This assignment is worth 150 points, 15% of your course grade. The assignment

More information

Entity Relationship Modelling

Entity Relationship Modelling Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is a relationship? Entities, attributes, and relationships in a system The degree of

More information

Software Engineering Prof.N.L.Sarda IIT Bombay. Lecture-11 Data Modelling- ER diagrams, Mapping to relational model (Part -II)

Software Engineering Prof.N.L.Sarda IIT Bombay. Lecture-11 Data Modelling- ER diagrams, Mapping to relational model (Part -II) Software Engineering Prof.N.L.Sarda IIT Bombay Lecture-11 Data Modelling- ER diagrams, Mapping to relational model (Part -II) We will continue our discussion on process modeling. In the previous lecture

More information

GUJARAT TECHNOLOGICAL UNIVERSITY

GUJARAT TECHNOLOGICAL UNIVERSITY Seat No.: Enrolment No. GUJARAT TECHNOLOGICAL UNIVERSITY BE - SEMESTER III (NEW) - EXAMINATION SUMMER 2017 Subject Code: 21303 Date: 02/06/2017 Subject Name: Database Management Systems Time: 10:30 AM

More information

Course on Database Design Carlo Batini University of Milano Bicocca

Course on Database Design Carlo Batini University of Milano Bicocca Course on Database Design Carlo Batini University of Milano Bicocca 1 Carlo Batini, 2015 This work is licensed under the Creative Commons Attribution NonCommercial NoDerivatives 4.0 International License.

More information

LECTURE 3: ENTITY-RELATIONSHIP MODELING

LECTURE 3: ENTITY-RELATIONSHIP MODELING LECTURE 3: ENTITY-RELATIONSHIP MODELING Ref. Chapter11 + Appendix F from Database Systems: A Practical Approach to Design, Implementation and Management. Thomas Connolly, Carolyn Begg. 1 IS220 : D a t

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms 9.2 Relation Primary key Foreign key Referential integrity

More information

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530

Translation of ER-diagram into Relational Schema. Dr. Sunnie S. Chung CIS430/530 Translation of ER-diagram into Relational Schema Dr. Sunnie S. Chung CIS430/530 Learning Objectives Define each of the following database terms 9.2 Relation Primary key Foreign key Referential integrity

More information

Database Management Systems

Database Management Systems Sample Questions 1 Write SQL query to create a table for describing a book. The table should have Book Title, Author, Publisher, Year published, and ISBN fields. Your table should have a primary key. For

More information

Data Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell

Data Analysis 1. Chapter 2.1 V3.1. Napier University Dr Gordon Russell Data Analysis 1 Chapter 2.1 V3.1 Copyright @ Napier University Dr Gordon Russell Entity Relationship Modelling Overview Database Analysis Life Cycle Components of an Entity Relationship Diagram What is

More information

Pirate Sports Database Tables/Fields

Pirate Sports Database Tables/Fields Gwen Goodman MIS-4113-601 Part 1: SQL You must use Microsoft SQLServer to create the following queries and then copy/past both the code and the data results. Be sure to show both the code and the data.

More information

Conceptual Data Models for Database Design

Conceptual Data Models for Database Design Conceptual Data Models for Database Design Entity Relationship (ER) Model The most popular high-level conceptual data model is the ER model. It is frequently used for the conceptual design of database

More information

Normalization Rule. First Normal Form (1NF) Normalization rule are divided into following normal form. 1. First Normal Form. 2. Second Normal Form

Normalization Rule. First Normal Form (1NF) Normalization rule are divided into following normal form. 1. First Normal Form. 2. Second Normal Form Normalization Rule Normalization rule are divided into following normal form. 1. First Normal Form 2. Second Normal Form 3. Third Normal Form 4. BCNF First Normal Form (1NF) As per First Normal Form, no

More information

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung

MIS2502: Data Analytics Relational Data Modeling - 1. JaeHwuen Jung MIS2502: Data Analytics Relational Data Modeling - 1 JaeHwuen Jung jaejung@temple.edu http://community.mis.temple.edu/jaejung Where we are Now we re here Data entry Transactional Database Data extraction

More information

Lecture3: Data Modeling Using the Entity-Relationship Model.

Lecture3: Data Modeling Using the Entity-Relationship Model. College of Computer and Information Sciences - Information Systems Dept. Lecture3: Data Modeling Using the Entity-Relationship Model. Ref. Chapter12 Prepared by L. Nouf Almujally & Aisha AlArfaj Rev. by

More information

CS/INFO 330 Entity-Relationship Modeling. Announcements. Goals of This Lecture. Mirek Riedewald

CS/INFO 330 Entity-Relationship Modeling. Announcements. Goals of This Lecture. Mirek Riedewald CS/INFO 330 Entity-Relationship Modeling Mirek Riedewald mirek@cs.cornell.edu Announcements Office hour update (see class homepage) First homework assignment will be available from CMS later today Some

More information

SAMPLE FINAL EXAM SPRING/2H SESSION 2017

SAMPLE FINAL EXAM SPRING/2H SESSION 2017 SAMPLE FINAL EXAM SPRING/2H SESSION 2017 School of Computing, Engineering and Mathematics Complete your details in this section when instructed by the Exam Supervisor at the start of the exam. You should

More information

Database Foundations. 2-3 Conceptual Data Modeling. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 2-3 Conceptual Data Modeling. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 2-3 Roadmap You are here What Is a Table? Relational Databases Conceptual Data Modeling Data Modeling Terminology Unique Identifiers and Primary Keys Relationships and Foreign Keys

More information

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE

NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE Exams, Awards & Graduations NOTE: DO NOT REMOVE THIS EXAM PAPER FROM THE EXAM VENUE EXAM COVER SHEET EXAMINATION DETAILS Course Code/s: ISYS1055/1057 Course Name/s: Database Concepts Date of Exam: Sample

More information

Chapter 2 Conceptual Modeling. Objectives

Chapter 2 Conceptual Modeling. Objectives Chapter 2 Conceptual Modeling Basic Entity Relationship Diagrams 1 Objectives Definition of terms Importance of data modeling Write good names and definitions for entities, relationships, and attributes

More information

Database Design and Administration for OnBase WorkView Solutions. Mike Martel Senior Project Manager

Database Design and Administration for OnBase WorkView Solutions. Mike Martel Senior Project Manager Database Design and Administration for OnBase WorkView Solutions Mike Martel Senior Project Manager 1. Solution Design vs. Database Design Agenda 2. Data Modeling/Design Concepts 3. ERD Diagramming Labs

More information

5 Years Integrated M.Sc.(IT) Semester 1 Practical LIST CC2 Database Management Systems

5 Years Integrated M.Sc.(IT) Semester 1 Practical LIST CC2 Database Management Systems 5 Years Integrated M.Sc.(IT) Semester 1 Practical LIST 060010110 CC2 Database Management Systems Practical No: 1 Duration for completion PEO(s) to be PO(s) to be CO(s) to be Date Group Analyze : Athe scenario

More information

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems

1/24/2012. Chapter 7 Outline. Chapter 7 Outline (cont d.) CS 440: Database Management Systems CS 440: Database Management Systems Chapter 7 Outline Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys Relationship

More information

Database Normalization. (Olav Dæhli 2018)

Database Normalization. (Olav Dæhli 2018) Database Normalization (Olav Dæhli 2018) 1 What is normalization and why normalize? Normalization: A set of rules to decompose relations (tables) into smaller relations (tables), without loosing any data

More information

High Level Database Models

High Level Database Models ICS 321 Fall 2011 High Level Database Models Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 9/21/2011 Lipyeow Lim -- University of Hawaii at Manoa 1 Database

More information

SECTION 1 DBMS LAB 1.0 INTRODUCTION 1.1 OBJECTIVES 1.2 INTRODUCTION TO MS-ACCESS. Structure Page No.

SECTION 1 DBMS LAB 1.0 INTRODUCTION 1.1 OBJECTIVES 1.2 INTRODUCTION TO MS-ACCESS. Structure Page No. SECTION 1 DBMS LAB DBMS Lab Structure Page No. 1.0 Introduction 05 1.1 Objectives 05 1.2 Introduction to MS-Access 05 1.3 Database Creation 13 1.4 Use of DBMS Tools/ Client-Server Mode 15 1.5 Forms and

More information

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary Data Modeling Data modeling is a very vital as it is like creating a blueprint to build a house before the actual building takes place. It is built

More information

Database Applications (15-415)

Database Applications (15-415) Database Applications (15-415) The Entity Relationship Model Lecture 2, January 15, 2014 Mohammad Hammoud Today Last Session: Course overview and a brief introduction on databases and database systems

More information

CIS 330: Web-driven Web Applications. Lecture 2: Introduction to ER Modeling

CIS 330: Web-driven Web Applications. Lecture 2: Introduction to ER Modeling CIS 330: Web-driven Web Applications Lecture 2: Introduction to ER Modeling 1 Goals of This Lecture Understand ER modeling 2 Last Lecture Why Store Data in a DBMS? Transactions (concurrent data access,

More information

Functional Dependencies and Normalization for Relational Databases Design & Analysis of Database Systems

Functional Dependencies and Normalization for Relational Databases Design & Analysis of Database Systems Functional Dependencies and Normalization for Relational Databases 406.426 Design & Analysis of Database Systems Jonghun Park jonghun@snu.ac.kr Dept. of Industrial Engineering Seoul National University

More information

Database Foundations. 3-9 Validating Data Using Normalization. Copyright 2015, Oracle and/or its affiliates. All rights reserved.

Database Foundations. 3-9 Validating Data Using Normalization. Copyright 2015, Oracle and/or its affiliates. All rights reserved. Database Foundations 3-9 Roadmap Conceptual and Physical Data Models Business Rules Entities Attributes Unique Identifiers Relationships Validating Relationships Tracking Data Changes over Time Validating

More information

IS 263 Database Concepts

IS 263 Database Concepts IS 263 Database Concepts Lecture 4: Normalization Instructor: Henry Kalisti 1 Department of Computer Science and Engineering Limitations of E- R Designs Provides a set of guidelines, does not result in

More information

Entity Relationship Data Model. Slides by: Shree Jaswal

Entity Relationship Data Model. Slides by: Shree Jaswal Entity Relationship Data Model Slides by: Shree Jaswal Topics: Conceptual Modeling of a database, The Entity-Relationship (ER) Model, Entity Types, Entity Sets, Attributes, and Keys, Relationship Types,

More information

Final Project. CS3500 Fall 2017

Final Project. CS3500 Fall 2017 Final Project CS3500 Fall 2017 Please design and create a Database Management System for an online book store in your mysql account on storm.cis.fordham.edu. A. A customer of the store should register

More information

CSC 261/461 Database Systems Lecture 8. Spring 2018

CSC 261/461 Database Systems Lecture 8. Spring 2018 CSC 261/461 Database Systems Lecture 8 Spring 2018 Announcement Quiz No New Problem Set Study Chapter 5, 6, and 7 Go through the problem set Announcement Project 2 Part 1 Already out. Workshop covered

More information

CSE 880:Database Systems. ER Model and Relation Schemas

CSE 880:Database Systems. ER Model and Relation Schemas CSE 880:Database Systems ER Model and Relation Schemas 1 Major Steps for Database Design and Implementation 1. Requirements Collection and Analysis: Produces database requirements such as types of data,

More information

Databases. Dr. Richard E. Turner March 5, 2013

Databases. Dr. Richard E. Turner March 5, 2013 Databases Dr. Richard E. Turner (ret26@cam.ac.uk) March 5, 2013 Big-data: Databases Database = structured collection of data Everywhere: Facebook, MySpace, Google, Android (sqlite3), Amazon,... Amazon

More information

... Chair of Mobile Business & Multilateral Security. Lecture 11 Business Informatics 2 (PWIN)

... Chair of Mobile Business & Multilateral Security. Lecture 11 Business Informatics 2 (PWIN) Lecture 11 Business Informatics 2 (PWIN) Database Management I Databases & Dataoriented Modelling WS 2015/16 Prof. Dr. Kai Rannenberg www.m-chair.de Chair of Mobile Business & Multilateral Security Jenser

More information

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling

COSC 304 Introduction to Database Systems. Entity-Relationship Modeling COSC 304 Introduction to Database Systems Entity-Relationship Modeling Dr. Ramon Lawrence University of British Columbia Okanagan ramon.lawrence@ubc.ca Conceptual Database Design Conceptual database design

More information

Database Management Systems. Chapter 2 Part 2

Database Management Systems. Chapter 2 Part 2 Database Management Systems Chapter 2 Part 2 Introduction to Database Design Database Management Systems 3ed, R. Ramakrishnan and J. Gehrke 1 Class Hierarchies Classify entities sets into Super-class and

More information

Represent entities and relations with diagrams

Represent entities and relations with diagrams LEARNING OBJECTIVES Define data modeling terms Describe E-R Model Identify entities and relations Represent entities and relations with diagrams WHAT IS DATA MODELING? A data model is a collection of concepts

More information

Conceptual Design with ER Model

Conceptual Design with ER Model Conceptual Design with ER Model Lecture #2 1/24/2012 Jeff Ballard CS564, Spring 2014, Database Management Systems 1 See the Moodle page Due February 7 Groups of 2-3 people Pick a team name Homework 1 is

More information

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot

Attributes. Entity-Relationship Model (ERM) IV. Entity Relationship Modeling. Entities and Attributes: Chen and Crow s Foot Entity-Relationship odel (ER) IV. Entity Relationship odeling Basis of an Entity-Relationship Diagram (ERD) A design technique Diagrams entities sets (with attributes) and the relationship between the

More information

ER Model. Objectives (2/2) Electricite Du Laos (EDL) Dr. Kanda Runapongsa Saikaew, Computer Engineering, KKU 1

ER Model. Objectives (2/2) Electricite Du Laos (EDL) Dr. Kanda Runapongsa Saikaew, Computer Engineering, KKU 1 ER Model Asst. Prof. Dr. Kanda Runapongsa Saikaew (krunapon@kku.ac.th) Dept of Computer Engineering Khon Kaen University Objectives (1/2) Relational Data Model Terminology of relational data model How

More information

High-Level Database Models (ii)

High-Level Database Models (ii) ICS 321 Spring 2011 High-Level Database Models (ii) Asst. Prof. Lipyeow Lim Information & Computer Science Department University of Hawaii at Manoa 1 Logical DB Design: ER to Relational Entity sets to

More information

L11: ER modeling 4. CS3200 Database design (sp18 s2) 2/15/2018

L11: ER modeling 4. CS3200 Database design (sp18 s2)   2/15/2018 L11: ER modeling 4 CS3200 Database design (sp18 s2) https://course.ccs.neu.edu/cs3200sp18s2/ 2/15/2018 132 Announcements! Keep coming with your name plates Mid-course feedback for instructor - Exam: Cheat

More information

Lecture5 Functional Dependencies and Normalization for Relational Databases

Lecture5 Functional Dependencies and Normalization for Relational Databases College of Computer and Information Sciences - Information Systems Dept. Lecture5 Functional Dependencies and Normalization for Relational Databases Ref. Chapter14-15 Prepared by L. Nouf Almujally & Aisha

More information

FUNCTIONAL SIZE MEASUREMENT USING THE COSMIC METHOD EXAMPLE: ONLINE SHOPPING

FUNCTIONAL SIZE MEASUREMENT USING THE COSMIC METHOD EXAMPLE: ONLINE SHOPPING FUNCTIONAL SIZE MEASUREMENT USING THE COSMIC METHOD EXAMPLE: ONLINE SHOPPING Copyright 2014. All Rights Reserved. Mónica Villavicencio and Alain Abran Permission to copy all or part of this material is

More information

SUMMER EXAMINATIONS 2014

SUMMER EXAMINATIONS 2014 SUMMER EXAMINATIONS 2014 MODULE TITLE LEVEL TIME ALLOWED Database Architecture Four Two hours Instructions to students: Enter your student number not your name on all answer booklets. The exam is split

More information

COMP 244. Entity Relationship Model Basics. Entity-Relationship Models. Key elements of the E-R model DATABASE CONCEPTS & APPLICATIONS

COMP 244. Entity Relationship Model Basics. Entity-Relationship Models. Key elements of the E-R model DATABASE CONCEPTS & APPLICATIONS COMP 244 DATABASE CONCEPTS & APPLICATIONS Entity Relationship Model Basics Key elements of the E-R model Entities Attributes Identifiers (Keys) Relationships Entity-Relationship Models 1 2 Database Concepts

More information

Part 5: Introduction to Logical Design

Part 5: Introduction to Logical Design 5. Introduction to Logical Design 5-1 Part 5: Introduction to Logical Design References: Elmasri/Navathe:Fundamentals of Database Systems, 3rd Edition, 1999. Chapter 3, Data Modeling Using the Entity-Relationship

More information

Notes. These slides are based on a slide set provided by Prof. M. Tamer Öszu. CS 640 E-R Model Winter / 23. Notes

Notes. These slides are based on a slide set provided by Prof. M. Tamer Öszu. CS 640 E-R Model Winter / 23. Notes The Entity-Relationship Model Olaf Hartig David R. Cheriton School of Computer Science University of Waterloo CS 640 Principles of Database Management and Use Winter 203 These slides are based on a slide

More information

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1

CS 4604: Introduction to Database Management Systems. B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1 CS 4604: Introduction to Database Management Systems B. Aditya Prakash Lecture #5: Entity/Relational Models---Part 1 E/R: NOT IN BOOK! IMPORTANT: Follow only lecture slides for this topic! Differences

More information

Exam code: Exam name: Database Fundamentals. Version 16.0

Exam code: Exam name: Database Fundamentals. Version 16.0 98-364 Number: 98-364 Passing Score: 800 Time Limit: 120 min File Version: 16.0 Exam code: 98-364 Exam name: Database Fundamentals Version 16.0 98-364 QUESTION 1 You have a table that contains the following

More information

Lecture 3 (Part 2) Akhtar Ali

Lecture 3 (Part 2) Akhtar Ali Normalisation Lecture 3 (Part 2) Akhtar Ali 10/14/2014 1 Learning Objectives 1. To consider the process of Normalisation 2. To consider the definition and application of 1NF 3. To consider the definition

More information

Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts

Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Chapter Outline Overview of Database Design Process Example Database Application (COMPANY) ER Model Concepts Entities and Attributes Entity Types, Value Sets, and Key Attributes Relationships and Relationship

More information

ENTITY-RELATIONSHIP MODEL. CS 564- Spring 2018

ENTITY-RELATIONSHIP MODEL. CS 564- Spring 2018 ENTITY-RELATIONSHIP MODEL CS 564- Spring 2018 WHAT IS THIS LECTURE ABOUT E/R Model: entity sets, attribute relation: binary, multi-way relationship roles, attributes on relationships subclasses (ISA) weak

More information

LABORATORY 5-6 REQUIREMENTS:

LABORATORY 5-6 REQUIREMENTS: LABORATORY 5-6 REQUIREMENTS: You will be given one of the problems below. Design the solution to this problem using the OOP paradigm. The application must be implemented in C++ and use layered architecture.

More information

The Entity/Relationship (E/R) Model & DB Design. csc343, Introduction to Databases Renée J. Miller and Fatemeh Nargesian and Sina Meraji Winter 2018

The Entity/Relationship (E/R) Model & DB Design. csc343, Introduction to Databases Renée J. Miller and Fatemeh Nargesian and Sina Meraji Winter 2018 The Entity/Relationship (E/R) Model & DB Design csc343, Introduction to Databases Renée J. Miller and Fatemeh Nargesian and Sina Meraji Winter 2018 Overview Using the Entity/Relationship (ER) Model to

More information

14 October 2015 EECS-3421A Test #1 p. 1 of 14. EECS-3421A Test #1. Design

14 October 2015 EECS-3421A Test #1 p. 1 of 14. EECS-3421A Test #1. Design 14 October 2015 EECS-3421A Test #1 p. 1 of 14 EECS-3421A Test #1 Design Sur / Last Name: Given / First Name: Student ID: Instructor: Parke Godfrey Exam Duration: 75 minutes Term: Fall 2015 Answer the following

More information

In mathematical terms, the relation itself can be expressed simply in terms of the attributes it contains:

In mathematical terms, the relation itself can be expressed simply in terms of the attributes it contains: The Relational Model The relational data model organises data as 2-dimensional tables or relations. An example of one such relation would be STUDENT shown below. As we have seen in the wine list example,

More information

School of Computing and Information Technology. Examination Paper Autumn Session 2017

School of Computing and Information Technology. Examination Paper Autumn Session 2017 School of Computing and Information Technology CSIT115 Data Management and Security Wollongong Campus Student to complete: Family name Other names Student number Table number Examination Paper Autumn Session

More information

Appendix A Database Design. Data Modeling and the Entity-Relationship Model

Appendix A Database Design. Data Modeling and the Entity-Relationship Model Appendix A Database Design Data Modeling and the Entity-Relationship Model 1 Three Stages of Database Development The three stages of database development are: 1. Requirements Analysis Stage 2. Component

More information

Database Logical Design

Database Logical Design Database Logical Design IT 5101 Introduction to Database Systems J.G. Zheng Fall 2011 Overview Relational model is a logical model Based on mathematical theories and rules Two ways to design a relational

More information

Faculty of Environment & Technology

Faculty of Environment & Technology Faculty of Environment & Technology Academic Year: 2012/13 Module Leader: Module Code: Title of Module: Prakash Chatterjee UFCE8K-15-M Data Management Examination Date: TBA Examination Start time: TBA

More information

Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra

Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Database Management System (15ECSC208) UNIT I: Chapter 2: Relational Data Model and Relational Algebra Relational Data Model and Relational Constraints Part 1 A simplified diagram to illustrate the main

More information

download instant at The Relational Data Model

download instant at  The Relational Data Model 3 The Relational Data Model EXERCISES 3.1 Define data atomicity as it relates to the definition of relational databases. Contrast data atomicity with transaction atomicity as used in a transaction processing

More information

Database Management Systems,

Database Management Systems, Database Management Systems Database Design (2) 1 Topics Data Base Design Logical Design (Review) Physical Design Entity Relationship (ER) Model to Relational Model Entity Relationship Attributes Normalization

More information

Database Logical Design

Database Logical Design Database Logical Design CIS 3730 Designing and Managing Data J.G. Zheng Fall 2010 1 Overview Relational model is a logical model Based on mathematical theories and rules Two ways to design a relational

More information

Normalization. Normal Forms. Normal Forms

Normalization. Normal Forms. Normal Forms Normalization A technique that organizes data attributes (or fields) such that they are grouped to form stable, flexible and adaptive entities. 5- Normal Forms First Normal Form (NF) There are no attributes

More information

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables

Entity-Relationship Modelling. Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables Entity-Relationship Modelling Entities Attributes Relationships Mapping Cardinality Keys Reduction of an E-R Diagram to Tables 1 Entity Sets A enterprise can be modeled as a collection of: entities, and

More information

CLASS DISCUSSION AND NOTES

CLASS DISCUSSION AND NOTES Mon CLASS DISCUSSION AND NOTES September 2009 Tue Wed Thu Fri 7 8 AH-2 Chap. 3 Rel. Model/ Normalization 9 10 Chap. 3 Rel. Model/ Normalization 11 14 15 16 17 18 AH-3; Project Deliverables Chap. 4 DB Design

More information

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for

Objectives Definition iti of terms List five properties of relations State two properties of candidate keys Define first, second, and third normal for Chapter 5: Logical Database Design and the Relational Model Modern Database Management 9 th Edition Jeffrey A. Hoffer, Mary B. Prescott, Heikki Topi 2009 Pearson Education, Inc. Publishing as Prentice

More information

Chapter 2 ENTITY RELATIONSHIP MODEL

Chapter 2 ENTITY RELATIONSHIP MODEL INTRODUCTION Chapter 2 ENTITY RELATIONSHIP MODEL Data model is used to describe data, data relationship and constraints on data. A number of different data models have proposed. They can broadly be classified

More information

1.264 Lecture 6. Data modeling

1.264 Lecture 6. Data modeling 1.264 Lecture 6 Data modeling 1. Data models Data model is representation of Things (or entities or objects) of importance to a business How the things relate to each other It is built and modified until

More information

CMPT 354 Database Systems. Simon Fraser University Fall Instructor: Oliver Schulte

CMPT 354 Database Systems. Simon Fraser University Fall Instructor: Oliver Schulte CMPT 354 Database Systems Simon Fraser University Fall 2016 Instructor: Oliver Schulte Assignment 1: Entity-Relationship Modeling. The Relational Model. MS SQL Server. Instructions: Check the instructions

More information

ER modeling. Lecture 4

ER modeling. Lecture 4 ER modeling Lecture 4 1 Copyright 2007 STI - INNSBRUCK Today s lecture ER modeling Slides based on Introduction to Entity-relationship modeling at http://www.inf.unibz.it/~franconi/teaching/2000/ct481/er-modelling/

More information

Mapping ER Diagrams to. Relations (Cont d) Mapping ER Diagrams to. Exercise. Relations. Mapping ER Diagrams to Relations (Cont d) Exercise

Mapping ER Diagrams to. Relations (Cont d) Mapping ER Diagrams to. Exercise. Relations. Mapping ER Diagrams to Relations (Cont d) Exercise CSC 74 Database Management Systems Topic #6: Database Design Weak Entity Type E Create a relation R Include all simple attributes and simple components of composite attributes. Include the primary key

More information

Lecture 9: Database Design. Wednesday, February 18, 2015

Lecture 9: Database Design. Wednesday, February 18, 2015 Lecture 9: Database Design Wednesday, February 18, 2015 Agenda Review HW #2 Discuss Normalization Theory Take Quiz #3 Normal Forms 1st Normal Form (1NF): will discuss briefly 2nd Normal Form (2NF): will

More information

QSCU Merchandise Store

QSCU Merchandise Store QSCU Merchandise Store Document Status: Milestone 2 October 29th 2018 COSC 304 Team Members: Team Members Removed Table Of Contents 1. Introduction 2 1.1 Mission Statement 2 1.2 Purpose of Document 2 1.3

More information

Entity/Relationship Modelling

Entity/Relationship Modelling Entity/Relationship Modelling Lecture 4 1 Outline E/R model (Chapter 5) From E/R diagrams to relational schemas (Chapter 5) Constraints in SQL (Chapter 4) 2 1. Database Design Modelling Decide which part

More information

2. E/R Design Considerations

2. E/R Design Considerations 2. E/R Design Considerations 32 What you will learn in this section Relationships cont d: multiplicity, multi-way Design considerations Conversion to SQL 33 Multiplicity of E/R Relationships Multiplicity

More information

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017

Applied Databases. Sebastian Maneth. Lecture 5 ER Model, Normal Forms. University of Edinburgh - January 30 th, 2017 Applied Databases Lecture 5 ER Model, Normal Forms Sebastian Maneth University of Edinburgh - January 30 th, 2017 Outline 2 1. Entity Relationship Model 2. Normal Forms From Last Lecture 3 the Lecturer

More information

Database Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015

Database Systems. Overview - important points. Lecture 5. Some introductory information ERD diagrams Normalization Other stuff 08/03/2015 Lecture 5 Database Systems Instructor: M.Imran Khalil Imrankhalil3@gmail.com Resource:Imrankhalil3.wordpress.com University of Sargodha Canal Campus Lahore Overview - important points Some introductory

More information