Download wallies wallpaper and border

Survey
yes no Was this document useful for you?
   Thank you for your participation!

* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project

Document related concepts

IMDb wikipedia , lookup

Microsoft SQL Server wikipedia , lookup

SQL wikipedia , lookup

Extensible Storage Engine wikipedia , lookup

Open Database Connectivity wikipedia , lookup

Serializability wikipedia , lookup

PL/SQL wikipedia , lookup

Database wikipedia , lookup

Microsoft Jet Database Engine wikipedia , lookup

Functional Database Model wikipedia , lookup

Concurrency control wikipedia , lookup

ContactPoint wikipedia , lookup

Database model wikipedia , lookup

Clusterpoint wikipedia , lookup

Relational model wikipedia , lookup

Transcript
FINAL
Examination Paper
(COVER PAGE)
Session
:
August 2011
Programme
:
Bachelor of Business Information Technology (Hons) – BBITI
B.Sc. (Hons) Network and Mobile Computing – BNMCI
B.Sc. (Hons) in Internet And Multimedia Computing – BIMCI
Course
:
ICT 3202/ICT3203 : Database System Concepts
ICT3263 : Data Management And Database Systems
Date of Examination :
15 December 2011
Time
:
08:00 – 10:00
Duration
:
2 Hours
Reading Time :
Nil
Special Instructions :
This paper consists of SIX (6) questions. Answer any FOUR (4) questions in the answer booklet
provided. All question carry equal marks.
Materials permitted
:
Nil
Materials provided
:
Nil
Examiner(s)
:
Shubashini Rathina velu
Moderator
:
Associate Professor Goh Poh Kim
This paper consists of 7 printed pages, including the cover page.
ICT 3202/3203/3263(F) / Page 1 of 5
INTI INTERNATIONAL UNIVERSITY
BACHELOR OF BUSINESS INFORMATION TECHNOLOGY (HONS) – BBITI
B.SC. (HONS) NETWORK AND MOBILE COMPUTING – BNMCI
B.SC. (HONS) IN INTERNET AND MULTIMEDIA COMPUTING – BIMCI
ICT 3202/ICT3203:DATABASE SYSTEM CONCEPTS
ICT3263:DATA MANAGEMENT AND DATABASE SYSTEMS
FINAL EXAMINATION :AUGUST 2011 SESSION
This paper consists of SIX (6) questions. Answer any FOUR (4) questions in the answer booklet
provided. All questions carry equal marks.
Question 1
Wally’s Wonderful World of Wallcoverings has hired you as a consultant to design a database
management system for his chain of three stores that sell wallpaper and accessories .He would
like to track sales, customers and employees. After initial meeting with Wally you have
developed a list of business rules and specifications to begin the design of an E-R Model .The list
of business rules are:
Customers place orders through a branch
A customer may place many orders
A Customer does not always have to order through the same branch all the time
Customers may have one or more accounts; although they may also have no accouts.
The following information need to be recorded about accounts: Balance ,last payment
date ,last payment amount , type
A branch may have many customers
A branch may sell all items or may only sell certain items
Orders are composed of one or more items
Items may be sold by one or more branches
An item can be composed of multiple items: for example a dining room wall covering set
may consists of wallpaper and borders
Wally employs 54 employees
Each employee may have one or more dependents
Employees can have one or more skills
Design an Entity Relationship diagram for this database. Specify primary keys and
cardinality in your ERD. In cases where the above requirement specification is ambiguous,
state clearly the assumptions which you made for justifying your modelling choices.
(25 marks)
ICT 3202/3203/3263(F) / Page 2 of 5
Question 2
(a)
Design an appropriate set of normalized relation to represent the Material Supply Details.
Decompose the following relation to First Normal Form (1NF), Second Normal Form
(2NF) and Third Normal Form (3NF).
Material relation:
Material(Material Id,Material Name,Units Of Measure,Standard Cost,Vendor Id,Vendor
Name,Tel No,Email,Unit price,Terms Code,Terms)
(16 marks)
(b)
Based on Shipment relation below briefly explain THREE (3) different types of
anomalies that occur in this unnormalized table.
Shipment relation:
Shipment (ShipmentID, ShipmentDate, Expected Arrival Date, Origin, destination,
ship#,CaptianId, Captain Name, Item#, Type, description, weight, quantity)
(9 marks)
Question 3
(a)
Explain the terms below :
(i)
Weak entity
(3 marks)
(ii)
Aggregation
(3 marks)
(b)
Explain the differences among the ON UPDATE RESTRICT, ON UPDATE CASCADE,
and ON UPDATE SET NULL clauses, and results of declaring ON DELETE CASCADE
(8 marks)
(c)
Discuss ANY (2) reasons to create a view using SQL and how a view can be used
to reinforce data security.
(6 marks)
(d)
Differentiate between COUNT, COUNT DISTINCT, and COUNT (*) in SQL.
(5 marks)
ICT 3202/3203/3263(F) / Page 3 of 5
Question 4
(a)
The following SIX (6) tables will be used to generate SQL statements for the following
queries.
Student (StudentId, Student Name,Email Id)
Student Id
Student Name
12589
Miley Cyrus
21258
Justin Bieber
66258
Selena Gomez
Qualified (FacultyId, CourseId, DateQualified)
Faculty Id
Course Id
2143
CT 1234
2143
CS 3454
3467
KM3255
4756
CT1234
Faculty (FacultyId, FacultyName)
Faculty Id
2143
3467
4756
Email Id
[email protected]
[email protected]
[email protected]
Date Qualified
9/2005
9/2005
9/2007
9/2008
Faculty Name
COMPUTER SCIENCE
BUSINESS INTELLIGENCE
INTERNATIONAL MARKETING
Section (SectionNo, Semester, CourseId)
Section No
Semester
2712
1-2008
2713
1-2008
2714
1-2008
Course (CourseId, CourseName)
Course Id
CT 1234
CS 3454
KM 3255
Registration (StudentId, sectionNo, Semester)
Student Id
Section No
12589
2712
21258
2713
66258
2714
Course Id
CT 1234
CS3454
KM3255
Course Name
System Analysis
Database Concepts
Knowledge Management
Semester
1-2008
1-2008
1-2008
ICT 3202/3203/3263(F) / Page 4 of 5
(i)
Display the semester which do not contain section 2714.
(2 marks)
(ii)
Display the course ID and course name for all courses with an CT prefix.
(3 marks)
(iii)
Which instructors are qualified to teach CS3454?
(iv)
Is any instructor qualified to teach CS3454 and not qualified to teach CT1234?
(4 marks)
(v)
How many students are enrolled in section 2714 during semester I-2008?
(3 marks)
(vi)
How many students are enrolled in ISM 3113 during semester I-2008?
(5 marks)
(5 marks)
(b)
Briefly explain the reasons to create a view using SQL and how a view can be used
to reinforce data security.
(6 marks)
Question 5
(a)
Describe one of the possible problems generated by concurrent access to the same data
and illustrates how the problem can be resolved by using the locking mechanism.
(10 marks)
(b)
Briefly explain granularity and how does granularity affects a transaction in a database
environment
(10 marks)
(c)
Based on the diagram below, briefly explain how a system recovery could be
implemented by means of checkpoint.
(5 marks)
time
T1
T2
T3
T4
T5
Transactions of type
checkpoint
system failure
ICT 3202/3203/3263(F) / Page 5 of 5
Question 6
(a)
The following table shows data items that are locked and waiting for some transactions in
a schedule.
Transaction
T1
T2
T3
T4
T5
T6
Locked Data Items
D2
D3, D10
D8
D7
D1, D5
D4, D9
Wait for Data items
D1, D3
D7, D8
D4, D5
D9
D3
D10
i)
Produce a wait-for-graph (WFG) for the transaction above .
ii)
Based on the WFG produced, determine the deadlock that exists.
(3 marks)
iii)
b)
Suggest ONE (1) solution to solve the deadlock problem that occurred in
part(ii)
(3 marks)
Identify and explain any THREE (3) computer-based counter measures that would
protect a company’s database.
(9 marks)
-The EndICT 3202/3203/3263 (F)/JAN2011/SHUBASHINI/151111