King Fahd University of Petroleum and Minerals

Similar documents
King Fahd University of Petroleum and Minerals

Chapter 9: Relational DB Design byer/eer to Relational Mapping Relational Database Design Using ER-to- Relational Mapping Mapping EER Model

Database Design Process


King Fahd University of Petroleum and Minerals

KINGDOM OF SAUDI ARABIA-JAZAN UNIVERSITY COLLEGE OF COMPUTER SCIENCE & INFORMATION SYSTEMS 221 INFS 3 DATABASE SYSTEMS-1 REVIEW QUESTIONS

CSE 880:Database Systems. ER Model and Relation Schemas

Entity Relationship Diagram (ERD) Dr. Moustafa Elazhary

LELCTURE 4: ENHANCED ENTITY-RELATIONSHIP MODELING (EER)

Database Design Process. Requirements Collection & Analysis

Advance Database Management System

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

CSCI 585 Database Systems Prof. Dennis McLeod. Sample Midterm Exam

Database Systems. A Practical Approach to Design, Implementation, and Management. Database Systems. Thomas Connolly Carolyn Begg

4. Entity Relationship Model

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

Conceptual Data Models for Database Design

Represent entities and relations with diagrams

THE ENHANCED ER (EER) MODEL CHAPTER 8 (6/E) CHAPTER 4 (5/E)

Chapter 17. Methodology Logical Database Design for the Relational Model

Relational DB Design by ER- and EER-to-Relational Mapping Design & Analysis of Database Systems

1. Considering functional dependency, one in which removal from some attributes must affect dependency is called

CS425 Midterm Exam Summer C 2012

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

Data Modeling with the Entity Relationship Model. CS157A Chris Pollett Sept. 7, 2005.

COMP Instructor: Dimitris Papadias WWW page:

Chapter 2 Conceptual Modeling. Objectives

Logical Database Design. ICT285 Databases: Topic 06

Database Management

Chapter (4) Enhanced Entity-Relationship and Object Modeling

ER to Relational Mapping

Solved MCQ on fundamental of DBMS. Set-1

Topic 5: Mapping of EER Diagrams to Relations

Ch 9: Mapping EER to Relational. Follow a seven-step algorithm to convert the basic ER model constructs into relations steps 1-7

Database Systems. Answers

KDI EER: The Extended ER Model

(a) Explain how physical data dependencies can increase the cost of maintaining an information

BSc (Hons) Software Engineering. BSc (Hons) Computer Science with Network Security. Examinations for / Semester 2 & 2017 / Semester 1

Chapter 4. Enhanced Entity- Relationship Modeling. Enhanced-ER (EER) Model Concepts. Subclasses and Superclasses (1)

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

DATABASE MANAGEMENT SYSTEM COURSE CONTENT

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

The Relational Model

Lecture 03. Spring 2018 Borough of Manhattan Community College

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

Task: Design an ER diagram for that problem. Specify key attributes of each entity type.

CS 338 The Enhanced Entity-Relationship (EER) Model

Chapter 1 SQL and Data

Draw A Relational Schema And Diagram The Functional Dependencies In The Relation >>>CLICK HERE<<<

SAMPLE FINAL EXAM SPRING/2H SESSION 2017

COIS Databases

MIS Database Systems Entity-Relationship Model.

SOLUTIONS TO REVIEW QUESTIONS AND EXERCISES FOR PART 3 - DATABASE ANALYSIS AND DESIGN (CHAPTERS 10 15)

Answer 2.3 The ER diagram is shown in Figure 2.1.

Chapter 2 ENTITY RELATIONSHIP MODEL

Chapter 2 Introduction to Relational Models

ER modeling. Lecture 4

ER-to-Relational Mapping

Copyright 2007 Ramez Elmasri and Shamkant B. Navathe Slide 4-1

Homework 2: E/R Models and More SQL (due February 17 th, 2016, 4:00pm, in class hard-copy please)

Using High-Level Conceptual Data Models for Database Design A Sample Database Application Entity Types, Entity Sets, Attributes, and Keys

Chapter 8 The Enhanced Entity- Relationship (EER) Model

SYED AMMAL ENGINEERING COLLEGE

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

Database Technology. Topic 4: Enhanced Entity- Relationship (EER) Modeling

Module 2 : Entity-Relationship Model 15

Example: specific person, company, event, plant

Northern India Engineering College, New Delhi Question Bank Database Management System. B. Tech. Mechanical & Automation Engineering V Semester

UNIT I. Introduction

Database Management Systems (COP 5725) (Spring 2007)

Chapter 8: Enhanced ER Model

VALLIAMMAI ENGINEERING COLLEGE

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

UNIVERSITI SAINS MALAYSIA. CIT503 Databases and E-Commerce Rapid Application Development. CSI512 Database Management Systems

Chapter 2: Entity-Relationship Model

D.K.M COLLEGE FOR WOMEN(AUTONOMOUS),VELLORE DATABASE MANAGEMENT SYSTEM QUESTION BANK

Copyright 2016 Ramez Elmasri and Shamkant B. Navathe

NOTE 1: This is a closed book examination. For example, class text, copies of overhead slides and printed notes may not be used. There are 11 pages.

Data Modeling Using the Entity-Relationship Model

DATABASE DEVELOPMENT (H4)

Database Management Systems,

CS 338: Computer Applications in Business: Databases

Multiple-Choice. 1. Which of the following is equivalent to a table? (3 pts.) a. record b. relation c. relationship d. constraint e.

Course Design Document: IS202 Data Management. Version 4.5

Course Outline Faculty of Computing and Information Technology

Assignment Session : July-March

CSIT115/CSIT815 Data Management and Security Assignment 1 5 March 2018

Detailed Data Modelling: Attribute Collection and Normalisation of Data

Chapter 2: Entity-Relationship Model. Entity Sets. Entity Sets customer and loan. Attributes. Relationship Sets. A database can be modeled as:

Entity Relationship Data Model. Slides by: Shree Jaswal

Do not turn over until you are told to do so by the invigilator. Module Contact: Dr. Beatriz de la Iglesia (CMP)

Sample Question Paper

Informatics 1: Data & Analysis

DATABASE DESIGN I - 1DL300

Chapter 2. Database Design. Database Systems p. 25/540

Enhanced Entity-Relationship (EER) Modeling

IS 263 Database Concepts

CS40 Exam #1 October 17, 2001

CMP-3440 Database Systems

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

Transcription:

Exam 1 March 16, 2008 Page 1 of 7 King Fahd University of Petroleum and Minerals Department of Information and Computer Science ICS 324: Database Systems Spring 2007-2008 Date: 16-March-2008 Major Exam I: Basics of Database Systems & Time Slot: 6:10 p.m. 7:25 p.m. Data Models Duration: 75 minutes Total Points: 100 Name: Student ID #: Notes: Check that you have seven (7) pages, including this one, containing four (4) questions. Please skim through all the questions, make sure that you understand them, and then attempt to answer them with a time-allocation in mind. If any question is not clear, get it clarified during the first fifteen minutes. If you need to make any assumptions, please state them clearly as part of your answers. There are four questions in this exam each focusing on one of the topics. You are expected to answer all of them. In some questions some parts may have some choices. Clearly identify which selection you decided to do. Scores: Problem Points Score Question 1: Databases Concepts 45 Question 2: Relational Database Model 30 Question 3: ER & EER Model: Concepts 35 Question 4: ER & EER Model: Design 40 Total 150

Exam 1 March 16, 2008 Page 2 of 7 1. [Databases Concepts] (45 Points) A. (Answer four parts only) (20 points) i. What is the difference between Database Management System (DBMS) and Database system? ii. List two of the advantages of using the DBMS approach and briefly explain one of them. iii. What is the difference between the database administrator and the database designer? iv. List two situations where it is not recommended to use a DBMS. v. Briefly discuss one of the levels of the three-schema Architecture, and identify which data model it uses. vi. Briefly describe the difference between the conceptual and logical design phases of the database design process.

Exam 1 March 16, 2008 Page 3 of 7 B. (25 points) i. List two of the main criteria a DBMS can be categorized with its categories. (10 Points) Criterion: Categories: Criterion: Categories: ii. Briefly describe only two of the following DBMS component modules: The DDL Compiler, the Pre-Compiler or the Query Compiler. (10 Points) iii. List two of the database system utilities and briefly explain one of them. (5 Points)

Exam 1 March 16, 2008 Page 4 of 7 2. [Relational Database Model] (30 points)] A. Describe two of the following concepts in the context of the relational model: (1) relation, attribute; (2) intension and extension; (3) degree and cardinality. (8 points) B. What is the difference between the primary key and a foreign key in a relation? (8 points) C. What is the difference between entity integrity and the referential integrity constraints? (8 points) D. Consider the following relations for a database that keeps track of auto sales in a car dealership.(6 points) CAR (Serial#, Model, Manufacturer, Price) OPTIONS (Serial#, OptionName, Price) SALES (SalespersonId, Serial#, Date, SalePrice) SALESPERSON (SalespersonId, Name, Phone) Specify the foreign keys for the above schema, showing which relation they refer to.

Exam 1 March 16, 2008 Page 5 of 7 3. [ER & EER Model: Concepts] (35 points)] A. (20 points) i. Briefly describe the three basic components of the Entity-Relationship Model. For each component outline two of its types.) ii. Briefly describe two of the following concepts in the EER model and present an example that clearly presents the concept: Generalization, Specialization or Categorization. B. Given the EER diagram in the next page, answer only three of the following: (15 points) i. Identify one relation with attributes, its participating entities and their participations. ii. Identify one specialization, its superclass, subclass and its completeness constraints. iii. Identify one categorization, and its superclasses and subclass. iv. Identify one multi-value attribute and another composite attribute. v. Identify an entity that participates in more than one relation, with the entities participating with it in the relations and all cardinality constraints.

Exam 1 March 16, 2008 Page 6 of 7 An EER Diagram for a database for part (b) of Question 3

Exam 1 March 16, 2008 Page 7 of 7 4. [ER & EER Model: Design] (40 points)] Design an EER diagram for the following Dental Clinic database. Your diagram should have all the needed details. You may make any reasonable assumptions but you have to state them clearly a. The clinic has several dentists. Each dentist has a unique Number, name, nationality, multiple room-number, salary, birth-date and home-address (Box, City, Zip). b. Each client (patient) has a unique Code, name, home-phone, work-phone, address, and birth-date. Each client is assigned to one dentist. All future visits will be to the same dentist. A client can be insured or self-paying. An insured client should have an insurance company-name, and company- Phone, while a self-paying client must have a bank-name and a bank account. c. Each visit of a client is described by a date, type, action, fee, and date-of-next-appointment A. Develop an Enhance Entity Relationship (EER) Model to represent the above requirements using the following steps: (20 points) Identify Entity types, and for each entity identifies its attributes and its primary key. Identify relationship types, attributes (if any), and determine the cardinality and participation constrains of each relationship. Specialize/generalize entity types (where appropriate) Categorize entity types (where appropriate) B. Draw an EER Diagram representing the EER model presented in part (i) (20 points)