Module Contact: Dr. Beatriz de la Iglesia, CMP Copyright of the University of East Anglia Version 1



Similar documents
VALLIAMMAI ENGNIEERING COLLEGE SRM Nagar, Kattankulathur

IT2305 Database Systems I (Compulsory)

Answers to Review Questions

Exercise 1: Relational Model

Answers included WORKSHEET: INTEGRITY CONTROL IN RELATIONAL DATABASES

IT2304: Database Systems 1 (DBS 1)

Demystified CONTENTS Acknowledgments xvii Introduction xix CHAPTER 1 Database Fundamentals CHAPTER 2 Exploring Relational Database Components

Introduction to Microsoft Jet SQL

SQL Databases Course. by Applied Technology Research Center. This course provides training for MySQL, Oracle, SQL Server and PostgreSQL databases.

THE UNIVERSITY OF TRINIDAD & TOBAGO


Database Design and Programming

DATABASE MANAGEMENT SYSTEMS. Question Bank:

There are five fields or columns, with names and types as shown above.

SCHEMAS AND STATE OF THE DATABASE

MySQL for Beginners Ed 3

2.5.3 Use basic database skills to enter information in a database

Databases What the Specification Says

Data Modeling Basics

Information Management

Introduction to Computing. Lectured by: Dr. Pham Tran Vu

2) What is the structure of an organization? Explain how IT support at different organizational levels.

SQL Simple Queries. Chapter 3.1 V3.0. Napier University Dr Gordon Russell

JAIPUR NATIONAL UNIVERSITY, JAIPUR School of Distance Education & Learning BBA III Semester Financial Management BBA 301 Max. Marks: 15 ASSIGNMENT-1

Introduction to Databases

Implementing a Data Warehouse with Microsoft SQL Server 2012

Data Modelling and E-R Diagrams

DBMS Questions. 3.) For which two constraints are indexes created when the constraint is added?

SAMPLE FINAL EXAMINATION SPRING SESSION 2015

Implementing a Data Warehouse with Microsoft SQL Server

COURSE 20463C: IMPLEMENTING A DATA WAREHOUSE WITH MICROSOFT SQL SERVER

System Development and Life-Cycle Management (SDLCM) Methodology. Approval CISSCO Program Director

BCA. Database Management System

Entity/Relationship Modelling. Database Systems Lecture 4 Natasha Alechina

ETL PROCESS IN DATA WAREHOUSE

Implementing a Data Warehouse with Microsoft SQL Server 2012

Database Management Systems,

Inventory and Loan Management System

Concepts of Database Management Seventh Edition. Chapter 7 DBMS Functions

Information Systems SQL. Nikolaj Popov

What is a database? COSC 304 Introduction to Database Systems. Database Introduction. Example Problem. Databases in the Real-World

Implement a Data Warehouse with Microsoft SQL Server 20463C; 5 days

CSCE 156H/RAIK 184H Assignment 4 - Project Phase III Database Design

Database Query 1: SQL Basics

Scheme G. Sample Test Paper-I

Course 55144B: SQL Server 2014 Performance Tuning and Optimization

Chapter 5 More SQL: Complex Queries, Triggers, Views, and Schema Modification

DATABASE INTRODUCTION

EECS 647: Introduction to Database Systems

Lecture 6. SQL, Logical DB Design

Elena Baralis, Silvia Chiusano Politecnico di Torino. Pag. 1. Active database systems. Triggers. Triggers. Active database systems.

Databases and BigData

Chapter 1: Introduction. Database Management System (DBMS)

G055/IC. APPLIED INFORMATION AND COMMUNICATION TECHNOLOGY Networking Solutions ADVANCED GCE INSTRUCTIONS FOR CANDIDATES JUNE 2011

The Relational Model. Why Study the Relational Model?

2. Conceptual Modeling using the Entity-Relationship Model

Chapter 1: Introduction. Database Management System (DBMS) University Database Example

Database Design Final Project

Would-be system and database administrators. PREREQUISITES: At least 6 months experience with a Windows operating system.

Implementing a Data Warehouse with Microsoft SQL Server

Using Temporary Tables to Improve Performance for SQL Data Services

East Asia Network Sdn Bhd

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. Introduction to Databases. Why databases? Why not use XML?

Core Syllabus. Version 2.6 B BUILD KNOWLEDGE AREA: DEVELOPMENT AND IMPLEMENTATION OF INFORMATION SYSTEMS. June 2006

Operations Management

What s new in Sage Evolution Version 6.81

Course 10777A: Implementing a Data Warehouse with Microsoft SQL Server 2012

AQA GCSE in Computer Science Computer Science Microsoft IT Academy Mapping

3. Relational Model and Relational Algebra

Course Outline: Course: Implementing a Data Warehouse with Microsoft SQL Server 2012 Learning Method: Instructor-led Classroom Learning

Implementing a Data Warehouse with Microsoft SQL Server 2012 (70-463)

CS2Bh: Current Technologies. Introduction to XML and Relational Databases. The Relational Model. The relational model

Introduction. Chapter 1. Introducing the Database. Data vs. Information

COMHAIRLE NÁISIÚNTA NA NATIONAL COUNCIL FOR VOCATIONAL AWARDS PILOT. Consultative Draft Module Descriptor. Relational Database

Implementing a Data Warehouse with Microsoft SQL Server 2012

Chapter 1: Introduction

Part I: Entity Relationship Diagrams and SQL (40/100 Pt.)

NitroSell ecommerce (NSc) Product Attribute Manager (PAM)

W I S E. SQL Server 2008/2008 R2 Advanced DBA Performance & WISE LTD.

14 Databases. Source: Foundations of Computer Science Cengage Learning. Objectives After studying this chapter, the student should be able to:

Implementing a Data Warehouse with Microsoft SQL Server 2012 MOC 10777

EXAMINATIONS 2008/2009 ACADEMIC YEAR FOR THE DEGREE OF BACHELOR OF BUSINESS MANAGEMENT AND INFORMATION TECHNOLOGY

Unit 5.1 The Database Concept

SQL Server An Overview

Chapter 6 FOUNDATIONS OF BUSINESS INTELLIGENCE: DATABASES AND INFORMATION MANAGEMENT Learning Objectives

10426: Large Scale Project Accounting Data Migration in E-Business Suite

Database IST400/600. Jian Qin. A collection of data? A computer system? Everything you collected for your group project?

Chapter 1 - Database Systems

Chapter 3. Database Environment - Objectives. Multi-user DBMS Architectures. Teleprocessing. File-Server

2. Basic Relational Data Model

SQL Server for developers. murach's TRAINING & REFERENCE. Bryan Syverson. Mike Murach & Associates, Inc. Joel Murach

CHAPTER 7: DATABASE APPLICATIONS AND PRIVACY IMPLICATIONS

Implementing a Data Warehouse with Microsoft SQL Server

Microsoft SQL Database Administrator Certification

Overview. Physical Database Design. Modern Database Management McFadden/Hoffer Chapter 7. Database Management Systems Ramakrishnan Chapter 16

Chapter 2 Database System Concepts and Architecture

Data Management in the Cloud: Limitations and Opportunities. Annies Ductan

Bridge from Entity Relationship modeling to creating SQL databases, tables, & relations

AdvAnced Business MAnAger The NexT GeNeraTioN of accounting software

"Charting the Course... MOC AC SQL Server 2014 Performance Tuning and Optimization. Course Summary

Transcription:

UNIVERSITY OF EAST ANGLIA School of Computing Sciences Main Series UG Examination 2012-13 DATABASE SYSTEMS CMPC2B08 Time allowed: 3 hours Answer THREE questions. All questions carry equal weight. Notes are not permitted in this examination Do not turn over until you are told to do so by the invigilator. CMPC2B08 Module Contact: Dr. Beatriz de la Iglesia, CMP Copyright of the University of East Anglia Version 1

Page 2 1. You have been asked to assess the suitability of a Database Management System (DBMS) for the following enterprise. A small training company delivers management training to a number of corporate customers. They employ 10 trainers and have 4 members of staff who work on administrative and managerial roles. They have so far used different solutions such as spreadsheets to keep track of the courses scheduled, participants, locations etc. They used different programs to manage payroll, invoicing and other financial information. The course materials, although mostly on electronic format, are not stored centrally. All the employees are computer literate and have access to their own workstations (e.g. laptops, desktops). The company has only been established for 2 years but has plans for expansion, as there is demand for their services. As you are given limited information, you should state any assumptions you make in giving your answer. (a) What aspects of a DBMS would be advantageous to such organization? How would the organization be helped by a DBMS? [20 marks] (b) What disadvantages of using a DBMS would have to be considered in your advice? [10 marks] (c) What type of architecture would be suitable for deployment of a DBMS for such an enterprise? (d) Would you recommend that the enterprise develops a DBMS and what would be the reasons for your recommendation? [4 marks] 2. A small training company uses a relational database to keep details of their customers, available courses, bookings for customers on courses, and sessions that make up a course. Some of the tables in the database are as follows: Customer (cno, cfirstname,csurname, cemail), Course (ccode,ctitle, cdescription) CourseSchedule (ccode*,cstartdate) Session (scode, stitle, stype, sduration, scost, ccode*) Booking (bno, ccode*cstartdate*,bdate, cno*)

Page 3 Where courses are run a number of times with different starting dates they may have a number of schedules; courses are composed of one to many sessions; and customers can have one to many bookings on different course schedules. Primary keys are underlined and foreign keys are marked by *. In addition the attributes of the tables can be interpreted as follows: cno is a unique numeric identifier for a customer, cfirstname is the first name of a customer, csurname is the surname of a customer, cemail is the email address of the customer, ccode is a unique four character code identifying a specific course, ctitle is a text string containing the title of the course, cdescription is a textual description of the course s aims, cstartdate is the start date for a course schedule. Courses are repeated through the year at different start dates, scode is a unique four character code identifying a specific session, stitle is a text string containing the title of the session, stype is a text string containing THEORY or PRACTICE to specify the type of session, sduration is an integer containing the number of hours for a session (always <=3), scost is a decimal specifying the cost of running each session, bno is a unique reference number for a booking issued to a customer, bdate is the date in which the booking is made. (a) Create suitable SQL Data Definition Language (DDL) statements to create the Session table. Define appropriate primary keys and foreign keys and ensure all constraints are reflected in the table definition. Assume all fields are required. (b) Write an SQL statement to insert a new customer called George Smith with an email g.smith@uea.ac.uk. The cno for the new customer should be the result of incrementing the greatest cno in the table by 1. (c) Write an SQL query to display all bookings for a course with code DM01. The query should display the course code, course title and course start date and the customer name for each booking. The data should be displayed in ascending start date order. PLEASE TURN OVER

Page 4 (d) Write an SQL query to display the total cost for all courses. The query should display the course code, course title total cost of the course, given all sessions that are part of the course. (e) Write an SQL query to display any course schedule with no bookings. The query should return the course code and start date. (f) Write an SQL query to delete all course schedules with start dates prior to 01 January 2010. [4 marks] (g) Discuss how bookings should be handled when their associated schedule is deleted. 3. A database is to be designed for a manufacturing company. The company has a number of manufacturing lines, each with their unique identity and with a status. The lines can manufacture different models, switching from one model to another on different dates. Schedules are drawn to decide what product to manufacture on a line on a given day. Each schedule is associated with a required quantity of the chosen model to be produced for that day. The models have a unique identifier and a description, a suggested retail price, a shipping weight and a time that it takes to manufacture them. Raw materials are required for the manufacturing of the models. Each material has a unique identifier code, a name, a unit of measurement, quantity in stock and a reorder level. Raw materials can be used in many different models and in different quantities. The materials are ordered from suppliers. Suppliers have identifiers, names and full contact details. Orders for materials are raised when the materials falls below the reorder level. A date will be associated with an order along with the quantity of each material and its cost. It is also important to record the total order cost. (a) Represent the set of requirements above in an ER Diagram. You must include entities with their attributes. State any assumptions you are making. [16 marks] (b) Identify all relationships among entities including their cardinality and participation constraints. Resolve any many to many relationships. [14 marks]

Page 5 (c) Identify all keys including primary keys and foreign keys. [10 marks] Total [40 marks] 4. (a) Briefly explain the importance of transactions in a database environment. Specify the SQL statements that control transactions and describe the function of each. [8 marks] (b) Describe what is meant by a serialisable schedule in transaction management and explain its importance to the operation of a database management system. [8 marks] (c) In a database environment, describe the operation and the problems addressed by: (i) The two-phase locking protocol, (ii) Typical deadlock detection and resolution algorithms for a centralized database management system, [12 marks] (d) Describe what is meant by the term ''ACID properties" applied to a database management system. [12 marks] 5. (a) Describe the architecture and main operations in a typical data warehouse. You can use a diagram to illustrate your answer. [14 marks] (b) Discuss the main issues that must be addressed if a data warehouse is to be a valuable long-term resource to an organisation. [14 marks] (c) Describe and discuss the advantages of star schemas for data warehouses. [12 marks]

Page 6 END OF PAPER