Management of Information Systems Session 3
|
|
- Laura Bailey
- 6 years ago
- Views:
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 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 informationDetailed 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 informationThe 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 informationThe 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 informationTranslation 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 informationL12: 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 information3 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 informationDatabase 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 informationMIS2502: 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 information2004 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 informationMIS2502: 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 informationBSc (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 informationMIS 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 informationLecture 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 informationXV. 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 informationRelational 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 information1. 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 informationEntity 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 informationSoftware 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 informationGUJARAT 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 informationCourse 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 informationLECTURE 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 informationTranslation 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 informationTranslation 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 informationDatabase 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 informationData 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 informationPirate 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 informationConceptual 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 informationNormalization 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 informationMIS2502: 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 informationLecture3: 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 informationCS/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 informationSAMPLE 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 informationDatabase 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 informationNOTE: 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 informationChapter 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 informationDatabase 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 information5 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 information1/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 informationDatabase 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 informationHigh 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 informationSECTION 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 informationEntity 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 informationDatabase 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 informationCIS 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 informationFunctional 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 informationDatabase 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 informationIS 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 informationEntity 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 informationFinal 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 informationCSC 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 informationCSE 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 informationDatabases. 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)
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 informationCOSC 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 informationDatabase 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 informationRepresent 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 informationConceptual 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 informationAttributes. 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 informationER 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 informationHigh-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 informationL11: 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 informationLecture5 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 informationFUNCTIONAL 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 informationSUMMER 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 informationCOMP 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 informationPart 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 informationNotes. 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 informationCS 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 informationExam 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 informationLecture 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 informationOverview 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 informationENTITY-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 informationLABORATORY 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 informationThe 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 information14 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 informationIn 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 informationSchool 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 informationAppendix 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 informationDatabase 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 informationFaculty 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 informationDatabase 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 informationdownload 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 informationDatabase 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 informationDatabase 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 informationNormalization. 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 informationEntity-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 informationCLASS 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 informationObjectives 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 informationChapter 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 information1.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 informationCMPT 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 informationER 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 informationMapping 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 informationLecture 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 informationQSCU 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 informationEntity/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 information2. 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 informationApplied 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 informationDatabase 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