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:
Data Modeling and Entity- Relationship Model II. IST2102 I want a database to maintain departments in my company. Store information about my employees,
Copyright © 2015 Pearson Education, Inc. Database Design Chapters 17 and
Draw an ER Diagram for the following (record any assumptions):
Riyadh Philanthropic Society For Science Prince Sultan College For Woman Dept. of Computer & Information Sciences CS 340 Introduction to Database Systems.
E/R – ODL – UML CS145 Monday November 26 Sanaz Motahari-Asl.
Revised by Ivor Perry Sept Introduction to Data Modelling.
Associative Entities A relationship cannot have attributes
Information Resources Management February 6, 2001.
8/28/97Information Organization and Retrieval Database Design University of California, Berkeley School of Information Management and Systems SIMS 202:
Case study Lisa’s Bookstore IST210.
Section 23.2 The Purchasing Function
Chapter 2 Modeling Data in the Organization
Buying Merchandise Pricing Merchandise 2. Buying Merchandise Pricing Merchandise 2.
ER Modeling Case Studies
Introduction to Business Organisations
Chapter 15, Section 1 Purchasing Items Needed by a Business
CSE 441: Systems Analysis & Design
MIS 2502 Business Rules BJ’s is interested in developing a new application. The database will track product, customer, and sale information. It will.
Practice of ER modeling
Introduction to the Orion Star Data
Instructor :Huda Al-Omair
Introduction to Database Systems
© 2006 Prentice Hall Business Publishing Accounting Information Systems, 10/e Romney/Steinbart1 of 96 C HAPTER 17 Special Topics in REA Modeling for the.
Data Modelling. ICT5 Introduction Historical development with most organisations Small-scale origins Individual computers bought for particular applications.
Assignements. CSC343: Intro. to Databases2 Exercise 1 Superkeys: Candidate keys: Primary key:
Dept. of Computer & Information Sciences
Purchasing Process Pertemuan 15 – 16 – 17
MS Access. Access is a DBMS/RDMS DBMS = Database Management System RDMS = Relational Database Management System.
1 ICOM 5016 – Introduction to Database System Project # 1 Dr. Manuel Rodriguez-Martinez Department of Electrical and Computer Engineering University of.
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
Chapter 1 The Role of Accounting in Starting a Business © 2009 The McGraw-Hill Companies, Inc.
Introduction to Database Systems
Database Management COP4540, SCS, FIU Database Modeling Using the Entity- Relationship Model (Continued)
Lecture 5 Entity Relationship Modeling
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.
Copyright © 2014, 2010, 2007 Pearson Education, Inc. Slide 1 Percent 7.
DATA SCIENCE MIS0855 | Spring 2016 Designing Data
DATA MODELING AND ENTITY-RELATIONSHIP MODEL II IST 210: Organization of Data IST210 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
Assignements.
Job Order and Process Costing
E-R Diagram (Cont.) Draw ER Diagram for the following scenario:
Dept. of Computer & Information Sciences
College Accounting, 22nd Edition
ER Modeling Case Studies
ERD Exercises.
Bookstore DB Requirements
Chapter 2 Modeling Data in the Organization
Database Modeling using Entity Relationship Model (E-R Model)
CS4222 Principles of Database System
ER Modeling Case Studies
ER Modeling Case Studies
Entity Relation Model Tingting Zhang.
Database Management system
Database Management system
Appendix A Data Modeling MANAGEMENT INFORMATION SYSTEMS 8/E
Presentation transcript:

Introduction to Database Systems 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)

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 Exercises 8

Exercise 3 (solution) DId PrinterId 1 N DEPARTMENT PRINTER N M Delay OPERATES N DEPARTMENT PRINTER N M Delay IN SUPPLIED -BY RoomNo Charge 1 N ROOM SUPPLIER BuildingNo SName Chapter 3 Practice Exercises 9

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 Exercises 13

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 Exercises 14

Exercise 5 (Solution) LastMeeting DeptName VendorName M BuyesFrom N Phone DEPARTMENT VENDOR 1 Address belongsTo DateMarried EmpNumber ProjName N 1 MarriedTo M WorksOn N EMPLOYEE PROJECT 1 EmpName Title BirthDate Cost Chapter 3 Practice Exercises 15

Exercise 4 Draw an ER diagram for the following situation. State any assumptions you believe you have to make in order to develop a complete diagram. Stillwater Antiques buys and sells one-of-a-kind antiques of all kinds (for example, furniture, jewelry, china, and clothing). Each item is uniquely identified by an item number and is also characterized by a description, asking price, condition, and open-ended comments. Stillwater works with many different individuals, called clients, who sell items to and buy items from the store. Some clients only sell items to Stillwater, some only buy items, and some others both sell and buy. A client is identified by a client number and is also described by a client name and client address. Chapter 3 Practice Exercises 10

Exercise 4 When Stillwater sells an item in stock to a client, the owners want to record the commission paid, the actual selling price, sales tax, and date sold. When Stillwater buys an item from a client, the owners want to record the purchase cost, date purchased, and condition at time of purchase. Chapter 3 Practice Exercises 11

Exercise 4 (Solution) SellingPrice Commission Tax DateSold ItemNumber SoldTo ItemNumber Description ClientNumber N 1 Price ITEM CLIENT Name N 1 Condition Comments Bought From Address Cost DateBurchased Condition Chapter 3 Practice Exercises 12