Documente Academic
Documente Profesional
Documente Cultură
1/6
2/6
1 a Conceptual model:
3/6
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
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
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