" 11y vipeagy
a a
i
004211583
(ae
Om
‘VERS
Monash University
Semester Two
Exam Period 2013
Faculty Of Information Technology
EXAM CODES: FITI90¢
TITLE OF PAPER: DATA MANAGEMENT - Main Group
EXAM DURATION: 3 hours writing time
READING TIME: 10 minutes
THIS PAPER IS FOR STUDENTS STUDYING AT:
Clayton, Malaysis, South Africa, Distance Edueation
During an exam, you must not have in your possession, a book, notes, paper, electronic device/s, calculator,
pencil case, mobile phone or other material/item which bas not been authorised for the exam or specifically
permitted as noted below. Any material or iter on your desk, chair or person will be deemed to be in your
possession, You are reminded that possession of unauthorised materials in an exam isa discipline offence under
‘Monash Statute 4.1.
No examination materials are to be removed from the room.
AUTHORISED MATERIALS
CALCULATORS NO
OPEN BOOK NO
SPECIFICALLY PERMITTED ITEMS NO
Candidates must complete this section if required to write answers within this paper
STUDENT ID DESK NUMBER
K@H | BIG0) | B20) ] B3@0 | BAUS ] BSG) | Bod | Total
a00)
Page 1 of 26Part A (Multiple choice): Attempt ALL questions in this part. There is no
penalty for an incorrect answer. There is only one correct answer for each
question. Mark your answer by circling the single option of your choice.
10x 2 marks = 20 marks
1. A table can be logically connected to another table by defining a___.
a. hyperlink
b. common attribute
c. primary key
d. logic key
2, What happens when you issue the DELETE FROM tablename command without specifying a
where condition? (You may assume that the table is not empty and also that there is no warning
and no error message.)
a. no rows will be deleted
b. the first row will be deleted
c. the last row will be deleted
d._ all rows will be deleted
3. The SQL command that lets you save your work permanently to database is_.
a. INSERT
b. SELECT
. COMMIT
d. UPDATE
4, The statement SELECT * FROM TI, T2 produces a(n) __join.
a, cross
b. full
c. natural
4d. equi-
5, ___ means that data used during the execution of a transaction cannot be used by a second
transaction until the first one is completed.
a. Serializability
b. Atomicity
c. Isolation
d. Time stamping
6. Dependencies based on only a part of a composite primary key are called __ dependencies.
a. primary
b. partial
c. incomplete
4. composite
Page 2 of 267. Assume you are using the MINUS operator to combine the results from two tables with identical
structure, CUSTOMER and CUSTOMER _2. The CUSTOMER table contains 10 rows, while
the CUSTOMER _2 table contains 7 rows. Customers Dunne and Olowski are included in the
CUSTOMER table as well as in the CUSTOMER _ 2 table (and no other customers are in both,
tables). How many records are retuned when using the MINUS operator - i.e, in analyzing
CUSTOMER MINUS CUSTOMER_2?
Bese
mene
8. A___relationship exists when an association is maintained within a single entity.
unary
temary
binary
weak
pegs
). Two or more queries that are connected using a set operator have to be union compatible. When
‘would two relations be union compatible? It is when the two relations have
a, the same degree and similar domain for the attributes.
b, the same degree and attributes” name.
¢. the same degree and cardinality.
. the same cardinality.
10. A(n)___ exists when there are functional dependencies such that Y is functionally dependent
on X and Z is functionally dependent on Y, and X is the primary key.
a. partial dependency
». repeating group
c. atomic attribute
4. transitive dependency
| oFFICE USE)
OFFICE USE
ONLY
20
Page 3 of 26Part B Attempt ALL questions.
Question 1. Data Quality.
Farina North is a private hospital.
Table 1 shows a sample of data entries from its admissions system.
‘Name Ailment7 Ward Admitied ‘Attending physician
a Condition _
John ‘Lung cancer Cancer 27 Dec 2010 | Chen
Smith, George R, Emergency 185-2011 Jacobs
TE Smith Lang cancer Cancer 2152001 ‘Chen
‘Amanda Jones regnanc; Obstetrics 1sJune 2011 | Dr Liz Jones
‘Mabel Brown = (Orthopaedics 2011-09-14 | Dr Williams
(Assume that the date of a
been violated.
6+4 = 10 marks
jion for John Smith has been incorrectly recorded. The correct
date was “28 Dec 2010”. Describe three data quality problems you find in the above table.
The description should include an explanation of what type of data quality dimension has
Page 4 of 26THIS PAGE IS BLANK
EXTRA SPACE FOR ANSWERING QUESTION 1 (i)
Page 5 of 26(i) What could be included in the data entry for the Farina North system to eliminate the data
quality problems you have identified in (i)?
‘OFFICE USE
ONLY
10
Page 6 of 26THIS PAGE IS BLANK
FOR ROUGH WORK
Page 7 of 26Question 2. Relational Model.
Explain the following relational model concepts.
5x3 marks = 15 marks
a. CANDIDATE KEY
b, PRIMARY KEY
Page 8 of 26c, DOMAIN INTEGRITY,
d. ENTITY INTEGRITY
Page 9 of 26e, REFERENTIAL INTEGRITY
OFFICE USE
ONLY
15
Page 10 of 26Question 3. SQL
Write an SQL statement to retrieve data from PAYROLL database for the following queries,
Use the PAYROLL logical model to answer question 3.
5x4 marks = 20 marks
enna
[Seoine MNENEE STP “salted by. |SAUGAADE course
lcsrame: verona, [> ~~} (alarade. NUMENCEEY TPC) frscade VARCHAR) (PR
en weve | patentee fda wna
" | iatowe ne tao can
} | feamse Nike’ J Eaton wc
| i 1
' ' |
I | t oo
I \ sanont
! fone NOME TAT
terrae encima onneand
Lappe lemob. VARCHAR)
ftoeginaace DATE]
Jscooe VARCHAR) (Px
- i
} 1 Erbe’ oxte
! | enema ces. ltceatin, vaRcvan
| [emororm NUMERIC ouccte) 8)
| ere MMe) 7]
I 1 Ege age tal
i pe
; ae
k
sasroxy
frp: ROMERET TPE Flees ORE TET
pte naae SAVE el Frese
fostbeoinrear NUMERICIE.O free. uci LPP
endaue one (eosin NUMERCE.
waa NOME. 2) OO
ost, VAEHAREO|
na MOWER) 1 |
PAYROLL Logical Model
List the names of employees whose surname starts with a letter “J” or “j”, Order the list by
employee's initials.
Page 11 of 26b. List ALL department names and the total number of employees in the department. The total
number of employees column should be renamed as “total_emps”, Order the list from the
department with the least number of employees to the most number of employees. Note: you
need to include a department in the list even when the department does not currently have
any employee assigned to it.
¢. List the names of all departments and their managers. Order the list in ascending order of
department name.
Page 12 of 264. List the employees’ names and the codes of the courses they have completed. The list will
be ordered by the employee surname, If an employee has completed more than one course
then the list will be further ordered by the course code,
¢. What is the name of the employee who offered the first course in the company?
OFFICE USE
_ONLY
20
. Page 13 of 26THIS PAGE IS BLANK
FOR ROUGH WORK
Page 14 of 26THIs PAGE IS BLANK
FOR ROUGH WORK
Page 15 of 26Question 4, Entity Relationship Model
Draw a relational model (logical level diagram) using the crow’s foot notation for the
Monash Grease Monkey’s relational database model. The implementation of the model will
ensure that the correct data for service records will be available to operate the business. In
the model, you need to make sure that all Primary Keys and Foreign Keys are identified.
You do not need to specify the data type for attributes.
Monash Grease Monkey provides a car maintenance service in Melbourne. It has several
branches across the Melbourne metropolitan area. The head office manages all service
records of vehicles. The service record contains the details such as vehicle registration
number, the reading of the odometer when the car is serviced, the date of the service and the
branch number of the branch that services the vehicle. A vehicle may have several service
records exist in the system, Every time a car is serviced, itis given a service number which
is unique to that vehicle ~ which has never been used before on that vehicle and which will
never be used again on that vehicle. In other words, service numbers are only unique for a
specific vehicle, For example a car with registration MON123 that has three service records
might have the service number of 1, 2 and 3 for those services. Another car with registration
ABC345 that has three service records might have the service number of 1,2 and 3.
At the time of service, one or more jobs may be carried out, In addition, one or more parts
may be installed into the vehicle during servicing. Parts may be used for multiple services
and jobs may be performed in several services. A service is performed at a particular date
fora given vehicle in a particular branch. A branch can service several vehicles in a day.
The details of the individual branch - such as, address, phone number and the manager’s
name - are required by the system.
A customer may own several vehicles that are served by the company. Customers’ details
such as customer name, customer address and a contact number are kept in the system.
15 marks
Page 16 of 26ANSWER PAGE FOR QUESTION 4
OFFICE USE
ONLY
15
Page 17 of 26THIS PAGE IS BLANK
FOR ROUGH WORK
Page 18 of 26Question 5. Normalisation.
10 marks (2+2+1+2+2+1)
The following table depicts sample data regarding suppliers of parts for Monash Grease Monkey.
part no part description | vendor id vendor name | vendor address | price
1234 Wheels Mit Tyres-Are- | 200 Dandenong | 180
Us Rd, Caulfield
East 3145
WI Parts-Are-Us | 1 Stud Rd, 165
Mulgrave 3208
3456 Break light MD Parts-Are-Us | 1 Stud Rd, 20
Mulgrave 3208 |
According to the business rules,
* each part can be supplied by multiple vendors.
* each vendor can supply muttipte parts.
a, Assume that we want to normalise the above table into third normal form (3NF), what
would you choose as a possible primary key to start the nomalisation process?
2 marks
Page 19 of 26b. Based on your choice of primary key in (a), what would be the UNF (unnormalised form)
of the table?
2 marks
cc. What would be the INF of (6)?
1 mark
Page 20 of 26d. Draw a dependency diagram of the relation(s) listed in (c)
2 marks
¢. What would be the 2NF of the relation(s) listed in (c)?
2 marks
Page 21 of 26£. What would be the 3NF of relation(s) listed in (e)?
1 mark
OFFICE USE
ONLY
10
Page 22 0f 26Question 6. Data Definition Language
An entity relationship diagram to depict a relationship between STUDENT and UNIT is
given below,
STUDENT
student_id (PK)
student_firsmame
student_lasname
student_dob
studies
(i) Map the above conceptual model to a logical level diagram of relational model using
UNIT
unit_code (PK)
unit_name
5+5 = 10 marks
Crow’s foot notation. Include in this model the attributes semester, year and mark.
‘The mark is allocated for a student for a given unit in a given semester and year.
Page 23 of 26Gi)
‘Write the create table statement for the table that contains the semester, year and
mark attributes. Include in the create table statement a constraint that ensures that
the mark is limited to the range of 0 to 100 inclusive, You DO NOT need to write
create table statements for STUDENT and UNIT tables. In writing the create table
statement, you can assume that create table statements for STUDENT and UNIT
table have been included in the schema and will be executed prior to the execution of
the create table statement that you have to write,
OFFICE USE
ONLY
10
Page 24 of 26THIS PAGE IS BLANK.
FOR ROUGH WORK
Page 25 of 26THIS PAGE IS BLANK
FOR ROUGH WORK
Page 26 of 26