Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Save to My Library
Look up keyword
Like this
2Activity
0 of .
Results for:
No results containing your search query
P. 1
UCC DBMS Exam April 2012

UCC DBMS Exam April 2012

Ratings: (0)|Views: 28 |Likes:
Published by Duval Pearson
Database Management Systems Examination April 2012
Database Management Systems Examination April 2012

More info:

Categories:Types, School Work
Published by: Duval Pearson on Apr 02, 2013
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

05/01/2013

pdf

text

original

 
UNIVERSITY COLLEGE OF THE CARIBBEAN
Incorporating Institute Of Management Sciences &Institute Of Management & ProductionA Member of the Commonwealth & OAS Consortia of Universities
 DATABASE MANAGEMENT SYSTEMS [ITT104
]EOM EXAMANSWER KEY
APRIL 2012INSTRUCTIONS TO MARKERS:
MARKING STUDENT’S SCRIPTS
1.Always refer to the marking scheme when marking.2.For simplicity, uniformity and comparison purposes, mark the same question throughout all thescripts first and then mark the next question (i.e. Q2) throughout.3.Ignore any names of students that may be on the script to help avoid bias.4.
 
Use the margin to enter your evaluation
 
of the work in relation to each part of the markingscheme.5.1
ST
Marker please mark in red biro/ink
only.
6. 2
nd
Marker please use green biro/ink only.7. Close attention must be placed on the level of English displayed when marking. More marksshould be awarded to students who show the ability to understand and answer the questions atan appropriate, searching and analytical level.8.
 
Enter the final marks and any comments at the end of the answer and enter the mark on thefront cover page.9. Enter any pertinent comments in the area assigned on the cover page, for Examiner’sComments . Your signature and the date should be inserted as an indication that you havecompleted the marking process.
 
SECTION A - Compulsory Question
Question 1. (30 marks)SALES DEPOTCreate a database that could be used to produce a report of customer details. You are not expected to write a report, just de
ne a database to contain theinformation that the report would be based on. The report should list thecustomer’s name, account balance, credit limit, and other customer detailssuch as the products they have purchased. The report will also list thecustomer’s account representative (one of the sales employees). Each salesrepresentative manages many customers but each customer will be managedby only one representative at any one time. Your design should allow forcustomers’ being managed by many account representatives over time as it ispossible that some of our employees may leave the company- thus requiringnew account representatives for a customer.
a)
Develop a suitable Entity Relationship Diagram and set of relations (a schema)that may be used to implement yourdatabase.
(5 marks)
 The above question should be answered by the candidate drawing a suitablediagram to de
ne the following three relations.CustomerPurchasedProductsAccountsSalesFor each relation, the candidate should de
ne their attributes and the relationshipbetween each relation. The relationship is below.Customer 1:1 AccountsCustomer 1:N PurchasedProductsPurchasedProducts N:1 CustomerAccounts 1:N Customer
b)
Write the SQL to create all of the tables and their attributes, data types andkey
elds
(10marks)
 The criteria to judge this question against are:
1.
Has the candidate created a suitable number of tables?
2.
Does each table contain capture enough information?
3.
Does each table de
ne a primary key?2 marks for each table that contains enough information with a correct primary key2 additional marks for good column names and appropriate data types.8
 
Ignore if the candidate has got the syntax wrong as it’s not appropriate to test acandidate’s recollection of syntax in an exam.
create tableCustomer( CustIdint primary key, CustNamenvarchar(50), AccountIdint,PurchasedIdint,ManagedByint);create tablePurchasedProducts( PurchaseIdint primary key, ProductIdint,ProductNamenvarchar(50) )create tableAccounts( AccountIdint primary key, AccountBalanceint,CreditLimitint,);create tableSales( ManagedByint primary key, RepresentativeNamenvarchar(50) );
c)
Identify and describe how you would develop two (2) queries that youconsider relevant to the daily operations of thebusiness.
(6 marks)
Candidate needs to ask what information would be business need to know each day. Three (3) marks per query.
1.
1 mark for legal SQL grammar (would the DB execute the query)
2.
1 mark for the query being something they would need to know daily
3.
1 mark for description of how they developed the query Types of query that should be awarded marks
1.
Any query to check the referential integrity of the database
2.
Which customer bought the most
3.
What is the most popular product
4.
What is the least popular product
d)
Identify and describe how you would develop one (1) report that you could useeach month to show which sales representative made the most sales and to whichcustomers eachmonth.
(4 marks)2 marks for a description of what information would go into thereport2 marks for the SQL query

You're Reading a Free Preview

Download
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->