Академический Документы
Профессиональный Документы
Культура Документы
PART A:
Q1.A database is
[a] a shared collection of logically related data
[b] a description of this data in [a]
[c] designed to meet the information needs of an organisation
[d] all of the above
[e] none of the above
[d] the logical database design phase also includes activities such
as designing security mechanisms for the data entry
[b] can not exist on its own, in that its existence is dependent on
another entity type
[c] is also a strong entity type if it contains two or more attributes.
[d] weakens any entity that has a direct relationship with it.
[e] is only [a] and [b] of the above
implies
[c] a dog (of Dog type) cannot be both male (of MaleDog
type) and female (of FemaleDog type)
[d] all of the above
[e] only [a] and [b] of the above
Q9.Suppose in a relation
[b] orderId and productId together comprise a candidate key for the
relation R
indicate
[a] one staff manages at most one branch, and some branches may
not be managed by any staff
[d] one staff may manage one or more branches, and some staff
may not manage any branches
[e] none of the above
This relation is
PART B:
Q32. [10 marks]
Consider the following table schemas for the hotel reservation
Pet(petId, petName, sex, petTypeId*)
PetType(petTypeId, animalType, breed)
[a] List all the names of the pet owners and their home phone
numbers in the suburb 'Parramatta'.
[b] List all the nicknames owners have given to their pet of
type 'cat'.
[c] List all the ownerId and the total number of pets owned by
this owner.
[d] Create in SQL the tables for the relations Owner and
PetAndOwner.
Q33. [5 marks]
Suppose relation R has the schema
3NF-GRD
[a] For the conceptual database design phase, design your database
in terms of an Entity- Relationship (ER) diagram. This ER
diagram should include explicitly the primary keys, the
participation multiplicities for the relationship type/s. State the
additional assumptions, if any, that are crucial to the design in your
final ER diagram.
(The ER diagrams for this and the following questions must adopt
the symbols, notations, and styles used throughout the textbook
by Connolly and Begg.) [4 marks]
[b] For the logical database design phase, map the final ER
diagram into the global relation diagram. Indicate all the
primary keys, foreign keys, multiplicity constraints, as well as at
least the crucial attributes. (Here “crucial” is in regard to the
database design, not necessarily to the needs of business
information.) [3 marks]
herbalMedicineId varchar(2),
CONSTRAINT herbalMedicineId_FK
- The case study in the last question is for illustration only. It does
not imply that the case
study in the final exam will be similar in any way in its business
nature.