Sunteți pe pagina 1din 7

lOMoARcPSD|6127488

Mid semester test 2015, past exam Database systems

Database Systems (University of Melbourne)

StuDocu is not sponsored or endorsed by any college or university


Downloaded by wissam mosleh (wissamz.mosleh@gmail.com)
lOMoARcPSD|6127488

INFO20003 Mid-semester Test 2015


Department of Computing and Information Systems 
The University of Melbourne 
 
Semester 2, 2015 
 
Subject Number:  INFO20003 
Subject Title:  Database Systems 
Reading + Writing Time: 40 minutes 
Number of Questions/Grading Scheme: 4 questions, a total of ​15​ marks. 
This forms ​10​% of your overall 
grade for the subject. 
Authorised Materials: None 
 
 
 
Please write down your ​student id​ here: ___________________________________ 
 
 
Use ​only​ the given space/boxes for each question to write down your answers 
 
 
You may (and probably should) use PENCIL to answer this test! 

   

1/6 

Downloaded by wissam mosleh (wissamz.mosleh@gmail.com)


lOMoARcPSD|6127488

Question 1: Database Design (5 Marks)


 
a) Draw a ​Conceptual ​Model (ER / EER) for the following scenario (9 marks). 
 
Blerghgle is an organisation that rents solar panels exclusively to students and pensioners. 
Blerghgle would like a relational database. Each season (winter, summer, spring and autumn) 
their customers are assigned a consultant who gives advice about the best locations for the 
solar panels. The consultant also helps customers arrange any future rentals. Customers must 
rent solar panels each month with the help of their consultant. But if a customer’s assigned 
consultant is not available, the customer may rent solar panels with the help of any available 
consultant. For each customer we must keep track of their name, email, assigned consultant, 
how many slices of cheese they have eaten in their lifetimes, and the consultant with whom the 
customer rents with for each month. For each rental, we need to keep track of the type of solar 
panel and quantity being rented. For each consultant, we need to keep track of how many slices 
of cheese they have eaten in their lifetimes. We also need to keep historical data to track each 
customer’s assigned consultant during their entire dealings with Blerghgle. Pensioners, as well 
as needing to rent solar panels must also provide a concession card number.  
 
 
ASSUMPTIONS, COMMENTS, EXPLANATIONS (1 mark – based on statement 
appropriateness) 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
 

2/6 

Downloaded by wissam mosleh (wissamz.mosleh@gmail.com)


lOMoARcPSD|6127488

1 a Conceptual model: 
 
 
 
 
 
 
 
 
 
 
   

3/6 

Downloaded by wissam mosleh (wissamz.mosleh@gmail.com)


lOMoARcPSD|6127488

b) Describe in point form the steps you would take to convert this ​conceptual​ model into a 
logical​ model. Refer to the specific entities and relationships from your answer to question 1a.  
(1 mark) 
 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
 
 

4/6 

Downloaded by wissam mosleh (wissamz.mosleh@gmail.com)


lOMoARcPSD|6127488

Question 3: SQL

a) The following 10 components of the Structured Query Language (SQL) can be 
categorised as either part of a Data Definition Language (DDL), Data Manipulation Language 
(DML) or Data Control Language (DCL). Next to each of the ten statements, circle the 
appropriate category on the right hand side (DDL, DML, DCL). (1 mark) 
 
1. ALTER DDL  /  DML  /  DCL 
2. CREATE DDL  /  DML  /  DCL 
3. DELETE DDL  /  DML  /  DCL 
4. DROP DDL  /  DML  /  DCL 
5. GRANT DDL  /  DML  /  DCL 
6. INSERT DDL  /  DML  /  DCL 
7. RENAME  DDL  /  DML  /  DCL 
8. REVOKE DDL  /  DML  /  DCL 
9. SELECT DDL  /  DML  /  DCL 
10. UPDATE DDL  /  DML  /  DCL 
 
 
b)  A friend gives you an ER diagram and says they have implemented it in MySQL to 
record information about painting auctions. The diagram is a conceptual model with a ternary 
relationship between a Painting, a Seller and a Buyer entity. The relationship is labelled as 
“Bids”. The relationship has attributes of timestamp and price. Buyers can bid as many times as 
they like. Assume that your friend has implemented the database consistent with the process 
taught in lectures. Write a single SQL statement that would answer the following question (i.e. 
you can’t use a View in your answer, sorry).  
 
What are the names of the Buyers who haven’t made a bid for “The Night Watch” painting last 
week? (2 marks) 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 

5/6 

Downloaded by wissam mosleh (wissamz.mosleh@gmail.com)


lOMoARcPSD|6127488

Question 4: (1 mark)

Complete this diagram of the Database Development Lifecycle. If you can not recall the exact 
name of a phase then describe it in the space provided below. (Note: this is worth 1 mark. Close 
enough is good enough for this question!)
 

 
 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 
_________________________________________________________________ 

6/6 

Downloaded by wissam mosleh (wissamz.mosleh@gmail.com)

S-ar putea să vă placă și