BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS



Similar documents
BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS

DATABASE MANAGEMENT SYSTEMS. Question Bank:

Converting E-R Diagrams to Relational Model. Winter Lecture 17

The Relational Model. Why Study the Relational Model? Relational Database: Definitions

IT2304: Database Systems 1 (DBS 1)

Fundamentals of Database Design

Introduction to normalization. Introduction to normalization

IT2305 Database Systems I (Compulsory)

Data Modeling. Database Systems: The Complete Book Ch ,

Chapter 5: Logical Database Design and the Relational Model Part 2: Normalization. Introduction to Normalization. Normal Forms.

ICAB4136B Use structured query language to create database structures and manipulate data

ER modelling, Weak Entities, Class Hierarchies, Aggregation

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

Database Design Methodology

IT3 Database Questions

Database Design. Marta Jakubowska-Sobczak IT/ADC based on slides prepared by Paula Figueiredo, IT/DB

Databasesystemer, forår 2005 IT Universitetet i København. Forelæsning 3: Business rules, constraints & triggers. 3. marts 2005

Databases What the Specification Says

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

The process of database development. Logical model: relational DBMS. Relation

Higher National Unit specification: general information. Relational Database Management Systems

A. TRUE-FALSE: GROUP 2 PRACTICE EXAMPLES FOR THE REVIEW QUIZ:

3. Relational Model and Relational Algebra

A Rational Software Whitepaper

Exercise 1: Relational Model

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

Answers included WORKSHEET: INTEGRITY CONTROL IN RELATIONAL DATABASES

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

Database Setup. Coding, Understanding, & Executing the SQL Database Creation Script

Foundations of Information Management

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

Fundamentals of Database System

Interpretation of Financial Statements

Normalization in Database Design

BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS

MCQs~Databases~Relational Model and Normalization

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

The Relational Model. Why Study the Relational Model? Relational Database: Definitions. Chapter 3

Basics of Dimensional Modeling

THE BCS PROFESSIONAL EXAMINATION Diploma October 2014 EXAMINERS REPORT Systems Analysis and Design

DATABASE INTRODUCTION

ETL Process in Data Warehouse. G.Lakshmi Priya & Razia Sultana.A Assistant Professor/IT

TIM 50 - Business Information Systems

IENG2004 Industrial Database and Systems Design. Microsoft Access I. What is Microsoft Access? Architecture of Microsoft Access

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

Database Design Methodology

Talis Decisions InfoView and Web Intelligence

Below is a table called raw_search_log containing details of search queries. user_id INTEGER ID of the user that made the search.

Chapter 6: Integrity Constraints

The Entity-Relationship Model

Why & How: Business Data Modelling. It should be a requirement of the job that business analysts document process AND data requirements

THE BCS PROFESSIONAL EXAMINATION Diploma. October 2004 EXAMINERS REPORT. Database Systems

Lecture 6. SQL, Logical DB Design

Chapter 9: Normalization

DATABASE NORMALIZATION

Relational Database Basics Review

Using Multiple Operations. Implementing Table Operations Using Structured Query Language (SQL)

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

SYSTEMS ANALYSIS AND DESIGN COURSE OUTLINE

BCA. Database Management System

BCS THE CHARTERED INSTITUTE FOR IT. BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT SYSTEMS ANALYSIS & DESIGN EXAMINERS REPORT

Section of DBMS Selection & Evaluation Questionnaire


Objectives of SQL. Terminology for Relational Model. Introduction to SQL

C# Cname Ccity.. P1# Date1 Qnt1 P2# Date2 P9# Date9 1 Codd London Martin Paris Deen London

BCS Higher Education Qualifications. Database Systems Syllabus

SAMPLE FINAL EXAMINATION SPRING SESSION 2015

Relational Databases

DATABASE DESIGN: NORMALIZATION NOTE & EXERCISES (Up to 3NF)

Databases and BigData

Introduction to Triggers using SQL

Designing Databases. Introduction

How to use Ez Trade Builder

Relational model. Relational model - practice. Relational Database Definitions 9/27/11. Relational model. Relational Database: Terminology

CSC 443 Data Base Management Systems. Basic SQL

OCR LEVEL 3 CAMBRIDGE TECHNICAL

How do I Carry out an Inventory Check or Stock Take?

Once the schema has been designed, it can be implemented in the RDBMS.

Select the Crow s Foot entity relationship diagram (ERD) option. Create the entities and define their components.

Database Design and the E-R Model

Guide to Performance and Tuning: Query Performance and Sampled Selectivity

Live Event Count Issue

Course Title: Database Design I

Review: Participation Constraints

Schedule of VET tuition fees 2016 Name of course: Diploma of Business Training Package Code: BSB50215 Delivery location(s): Virtual Campus

Data Modeling: Part 1. Entity Relationship (ER) Model

SQL NULL s, Constraints, Triggers

Chapter 2: Entity-Relationship Model. Entity Sets. " Example: specific person, company, event, plant

The Relational Data Model: Structure

Ken Goldberg Database Lab Notes. There are three types of relationships: One-to-One (1:1) One-to-Many (1:N) Many-to-Many (M:N).

Data Hierarchy. Traditional File based Approach. Hierarchy of Data for a Computer-Based File

Database Design and Implementation

A basic create statement for a simple student table would look like the following.

GUJARAT TECHNOLOGICAL UNIVERSITY, AHMEDABAD, GUJARAT. COURSE CURRICULUM COURSE TITLE: DATABASE MANAGEMENT (Code: ) Information Technology

Normalization. CIS 3730 Designing and Managing Data. J.G. Zheng Fall 2010

The join operation allows you to combine related rows of data found in two tables into a single result set.

A Decision Support Method for Evaluating Database Designs

Foundations of Information Management

BUDGETING AND BUDGETARY CONTROL

Chapter 6. Database Tables & Normalization. The Need for Normalization. Database Tables & Normalization

Transcription:

A1 BCS THE CHARTERED INSTITUTE FOR IT BCS HIGHER EDUCATION QUALIFICATIONS BCS Level 5 Diploma in IT DATABASE SYSTEMS Friday 4 th April 2014 - Morning Answer any FOUR questions out of SIX. All questions carry equal marks Time: TWO hours Answer any Section A questions you attempt in Answer Book A Answer any Section B questions you attempt in Answer Book B The marks given in brackets are indicative of the weight given to each part of the question. Calculators are NOT allowed in this examination Section A Answer Section A questions in Answer Book A (a) A tennis club uses the following table to record details of players and their coaches. Players PlayerID Name Ranking CoachID CoachName P001 Little 12 C003 Spode P002 Widgeon 03 C013 Glossop P003 Prosser 17 C003 Spode P004 Twistleton 09 C006 Travers (i) (ii) Explain why the above table is not in 3 rd normal form. Transform the table into 3 rd normal form. (4 Marks) Page 1

(b) The table below records orders for items. Each order is placed on a given date, and may include a variety of items in different quantities. Orders OrderNo ItemNo Description Date Quantity 1 12 Screw Jan 6th 100 1 15 Bolt Jan 6th 50 2 7 Flange Feb 2nd 10 2 15 Bolt Feb 2nd 40 2 12 Screw Feb 2nd 80 (i) Give an example of an insertion anomaly and an example of modification (update) anomaly that might occur in the above table. (4 Marks) (ii) (iii) Explain why this table is not in 2 nd Normal Form. Transform the table into 2 nd Normal Form (3 Marks) (c) Given the table below, where A, B, C, D and E represent the attributes of the table. A D is one example of a functional dependency in this table. Find two other dependencies. A B C D E a1 b1 c1 d1 e1 a1 b2 c2 d1 e2 a1 b3 c1 d1 e3 a2 b1 c1 d2 e4 a2 b2 c2 d2 e5 Page 2

A2 Examine the following ERD (using UML notation) which is used to model the voyages of ships and their movement during a voyage from port to port. Then answer the question parts that follow. Employee Name Company Duration (days) Crew 1,,N Employs 1..1 Ship 0..N 0 N Undertakes EmployeeID ShipName PortName Country Voyage 1..N Visits 2..N Port VoyageName a) With reference to the ER model above, explain the concept of relationship participation involving the Visits relationship and the Employs relationship. (Hint your answer should include a diagram of entity occurrences) b) Identify and explain the difference between a weak entity type and a strong entity type. c) Explain how you would assign the following attributes to the appropriate relationships in the ER model (i) (ii) (iii) (iv) DestinationPort, VisitStartDate VisitEndDate VoyageStartDate (4 Marks) Page 3

d) Explain how you would translate the ERD above to an equivalent relational model. Identify the primary keys and foreign keys for each relation. (hint remember to reconcile the many to many relationships and assign attributes to appropriate relations) (10 Marks) A3 a) Write out the output and express in English the result of running each of the following queries against the following tables Loan LoanID BorrowerID LoanDate DueDate ReturnDate 123 874 12-23-2013 01-24-2014 01-24-2014 124 874 12-23-2013 01-24-2014 NULL 125 876 12-29-2013 01-28-2014 NULL 123 874 01-25-2014 02-21-2014 NULL Borrower BorrowerID BorrowerFname BorrowerLname 874 Leon Small 875 Gary Lowe 876 Mark Sanchez 877 Clywd Morgan Query 1: SELECT Count(*), BorrowerLname FROM Loan, Borrower WHERE Loan.BorrowerID = Borrower.BorrowerID GROUP BY BorrowerLname HAVING Count(*) >2 Query2: SELECT DISTINCT BorrowerID FROM Loan WHERE ReturnDate IS NULL AND DueDate < getdate() Note GETDATE returns the current date which you should assume is = 01-27-2014 Query3: SELECT BorrowerID FROM Borrower WHERE BorrowerID NOT IN (SELECT BorrowerID FROM Loan); (9 Marks) Page 4

b) SQL allows the database developer to create indexes. Describe using example SQL code the range of indexing techniques that could be used to improve the performance of each of the above queries. (9 Marks) c) Describe the use of various DBMS software tools that allow the performance of queries to be monitored. (7 Marks) Section B Answer Section B questions in Answer Book B B4 This question uses the Electricals relation below Electricals Code Description Supplier Price Stock 1 DVD Sunshine Electricals 99.99 24 2 Netbook Electro-Pro 149.99 65 3 HDTV Sunshine Electricals 499.99 24 4 Speakers Pro-Sound 129.99 58 5 MP3 Player Pro-Sound 29.99 350 6 Smart Phone Talk2Go 149.99 125 7 Tablet Computer Electro-Pro 199.99 134 (a) For each of the following descriptions name the correct relational concept and give an example based on the Electricals relation (i) Provides a mechanism for identifying each row in the relation (ii) Describes the number of rows in the relation (iii) Describes the number of columns in the relation (iv) Describes the permitted values in any given column (v) Provides a mechanism for linking to another relation (b) For each of the following relational concepts, explain the key ideas behind it and use the Electricals relation to provide suitable examples Entity Integrity Referential Integrity Page 5

(c) Write a single sentence with a simple example (based on any relation) to illustrate the following relational concepts Candidate Key Alternate Key Atomic Key Composite Key Primary Key (9 Marks) B5 (a) Explain the phrase three-tier architecture with respect to the following two distinct systems: (i) Databases and the ANSI-SPARC model (ii) Databases and the Web Good diagrams are essential in each case. (b) Explain, using your own examples, how the following database concepts are implemented and how they relate to each other: B6 (i) Data integrity (ii) Data validation (iii) Data security (a) Describe four possible benefits of Views in databases. (8 Marks) (b) Describe the role, and content, of the system catalog in a DBMS (c) Discuss what is meant by Integrity in a database, and describe two possible mechanisms for achieving data integrity. (6 marks) (d) Describe five advantages of using a database system over the use of spreadsheets. (5 marks) Page 6