Professional Documents
Culture Documents
DATABASE
SEM 1, 2022/2023
Tutorial Week 4
1. Draw the following relationship using a suitable notation. Show the cardinalities.
A doctor can treat many patients but must treat at least 1 patient and a patient
is treated by only one doctor. It is optional for a patient to be given any
medication, but it is also possible for the patient to receive up to 10
medications. A medication can be given to many patients.
An art gallery keep information about artists, their names (which are unique),
birthplace, age and style of art. For each piece of artwork, the artist, the year it
was made, its unique title, its type of art (e.g., painting, sculpture, photograph),
and its price must be stored. Pieces of artwork are also classified into groups of
various kinds, for example, portraits and sculptures (given piece may belong to
more than one group). Each group is identified by a group name that describes
the group. The gallery keep all the information about customers. For each
customer, the gallery keep that person’s unique name, address, total amount of
ringgit’s spent, and the artists and groups of art that the customer tends to like.