Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.

Slides:



Advertisements
Similar presentations
ER Model For a college DB
Advertisements

ER Modeling Case Studies
Exercise 1 Consider the ER diagram below. Assume that an employee may work in up to two departments or may not be assigned to any department. Assume that.
Entity-Relationship Modeling (ER-M)
ER Modeling Case Studies
ER Modeling Case Studies
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 102 Computer Programming II (Lab:
Dept. of Computer & Information Sciences
Draw an ER Diagram for the following (record any assumptions):
E/R – ODL – UML CS145 Monday November 26 Sanaz Motahari-Asl.
Revised by Ivor Perry Sept Introduction to Data Modelling.
Information Resources Management February 6, 2001.
The (min,max) notation (1,1) (0,1) (1,N) (1,1). SUMMARY OF ER-DIAGRAM NOTATION FOR ER SCHEMAS Meaning ENTITY TYPE WEAK ENTITY TYPE RELATIONSHIP TYPE IDENTIFYING.
Case study Lisa’s Bookstore IST210.
Dr Derek Peacock14/08/20151 Database Design 1:1 Relationships Dr Derek Peacock.
ER Modeling Case Studies
Data Modeling Using the Entity-Relationship Model
Lecture 2: Entity-Relationship Modeling
Database. Basic Definitions Database: A collection of related data. Database Management System (DBMS): A software package/ system to facilitate the creation.
Practice of ER modeling
Instructor :Huda Al-Omair
Conceptual Design Lecture - 2 Database Development.
Introduction to Database Systems
Switch off your Mobiles Phones or Change Profile to Silent Mode.
Dept. of Computer & Information Sciences
 R EVIEW M ORE ON ERD’ S DBS201. Why ERDs What is an ERD What is represented by boxes What is the connection between boxes called.
MS Access. Access is a DBMS/RDMS DBMS = Database Management System RDMS = Relational Database Management System.
Initial Design of Entity Types for the COMPANY Database Schema Based on the requirements, we can identify four initial entity types in the COMPANY database:
Database Design 3: Advanced Data Modeling Concepts CS 320.
Normalization Exercise. First Normal Form Second Normal Form.
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Entity-Relationship Model Chapter 3 II COSC 457 Sungchul Hong.
Week 2 Lab2 ER Diagram Dina A. Said
Data Modelling Using Entity-Relationship (ER) Model
Introduction to Database Systems
Entity/Relationship Modelling. Entity Relationship Modelling In This Lecture Entity/Relationship models Entities and Attributes Relationships Attributes.
Introduction to Database Systems
CSE 412/598 DATABASE MANAGEMENT COURSE NOTES 3. ENTITY-RELATIONSHIP CONCEPTUAL MODELING Department of Computer Science & Engineering Arizona State University.
Database Management COP4540, SCS, FIU Database Modeling Using the Entity- Relationship Model (Continued)
Lecture 5 Entity Relationship Modeling
BIS 360 – Lecture Six (Part 1) Conceptual Data Modeling (Chapter 10 and partial Chapter 12)
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
Model Relationships Read the relationships.
1 CS 430 Database Theory Winter 2005 Lecture 3: A Fifty Minute Introduction to Data Modeling.
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 1.
Database Designsemester Slide 1 Database Design Lecture 7 Entity-relationship modeling Text , 7.1.
2b. Create an Access Database Lingma Acheson Department of Computer and Information Science IUPUI CSCI N207 Data Analysis with Spreadsheets 1.
Databases (CS507) CHAPTER 7.
Let try to identify the conectivity of these entity relationship
CS4222 Principles of Database System
Dept. of Computer & Information Sciences
CSIS 115 Database Design and Applications for Business
Case Studies: Data Modeling
E-R Diagram (Cont.) Draw ER Diagram for the following scenario:
Dept. of Computer & Information Sciences
ER Modeling Case Studies
ERD Exercises.
Entity-Relationship Modeling "Extended"
Database Modeling using Entity Relationship Model (E-R Model)
CS4222 Principles of Database System
Conceptual Data Modeling Using Entities & Relationships
ER Modeling Case Studies
ER Modeling Case Studies
Entity Relation Model Tingting Zhang.
Database Management system
Database Management system
Entity-Relationship Modeling "Extended"
Entity-Relationship Modeling "Extended"
Presentation transcript:

Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems (Chapter 3 Practice Exercises)

Chapter 3 Practice Exercises8 Exercise 3 Identify the entities and relationships for the following description and draw an ER diagram. Departments, identified by ID, operate a variety of printers, each located in a particular room in a particular building. Printers are supplied by a number of suppliers, identified by name, with each supplier charging a different price for a given printer, but also providing different delivery delays, measured in days. A given room can have any number of printers, including none.

Chapter 3 Practice Exercises9 DEPARTMENTPRINTER OPERATES SUPPLIED -BY DIdPrinterId SUPPLIER ROOM BuildingNo RoomNo SName IN 1N M N N 1 Exercise 3 (solution) Delay Charge

Chapter 3 Practice Exercises13 Exercise 5 Draw an ER diagram for the following situation. State any assumptions you believe you have to make in order to develop a complete diagram. Projects, Inc., is an engineering firm with approximately 500 employees. A database is required to keep track of all employees, projects assigned, and departments worked in. every employee has a unique number assigned by the firm, required to store his or her name and date of birth. If an employee is currently married to another employee of projects, Inc., the date of marriage and who is married to whom must be stored; however, no record of marriage is required if an employee’s spouse is not also an employee. Each employee is given a job title (for example, engineer, secretary, and so on).

Chapter 3 Practice Exercises14 Exercise 5 An employee does only one type of job at any given time, and it is only needed to retain information for an employee’s current job. There are 11 different departments, each with a unique name. An employee can report to only one department. Each department has a phone number. To procure various kinds of equipments, each department deals with many vendors. A vendor typically supplies equipment to many departments. It is required to store the name and address of each vendor and the date of the last meeting between a department and a vendor. Many employees can work on a project. An employee can work on many projects. Projects are distinguished by project number, and the estimated cost of each project must be stored.

Chapter 3 Practice Exercises15 Exercise 5 (Solution) DEPARTMENTVENDOR BuyesFrom belongsTo DeptName Phone VendorName PROJECTEMPLOYEE Title MN 1 N WorksOn NM LastMeeting Address ProjName Cost MarriedTo DateMarried 1 1 EmpNameBirthDate EmpNumber