UD2 Exercises
UD2 Exercises
Example: The product galvanized steel nuts of gauge 6, whose model is TAGC6,
is manufactured by manufacturer4, who sells them to us for €0.06 each, and by
manufacturer14, who sells them to us for €0.03 each. The retail price of the
first is higher than that of the second.
3. A conceptual design is to be developed for the maintenance of an art
gallery. We want to store information about artists, including their name
(which is unique), place of birth, age, and the art style they work in.
- For each piece of art in the gallery, it is necessary to store the artist, the year
of creation, its title (which is unique), the type of art it corresponds to, and
its price. Art pieces are classified into groups of different types, such as
portraits, still lives, works by Picasso, or works from the 19th century. A
piece of art can belong to more than one of these groups. Each group is
identified by a name that describes it (like the ones mentioned earlier).
- Information about the gallery's clients is also stored: their name (which is
unique), address, total money spent in the gallery so far, as well as the
artists and art groups the client is interested in.
4. The company Ventas S.A. is dedicated to selling products over the phone
that it advertises on television. It wants us to design a relational database to
computerize the order management process. To this end, it explains how
the company operates and the information it handles.
- When a customer calls to place an order, their personal information is
collected (ID number, name, address, and phone number), the address to
which the order should be sent, and each of the products they wish to
purchase. Additionally, the payment method is noted: cash on delivery or
credit card. In the latter case, the type of card (Visa, 4B, etc.), its number,
and the expiration date must be recorded. The company has a list of phone
numbers, one for each type of card, which it calls to confirm validity before
fulfilling the order. When the customer finishes placing the order, they are
given a unique order number. The list of products for sale includes a unique
code for each product, its description, the price per unit, and its category.
The category indicates the duration of the product's trial period: products in
category A have a 7-day trial, those in category B have a 15-day trial, and
those in category C have a 30-day trial. The duration of these periods may
vary for each category based on market response.
5. A relational database is to be designed to manage the data of the members
of a sailing club.
- For each member, personal information is stored along with details about
the boat or boats they own: registration number, name, mooring number,
and the fee they pay for it. Additionally, information is to be maintained
about the outings made by each boat, such as the date and time of
departure, the destination, and the personal information of the captain,
who does not have to be the owner of the boat and does not necessarily
have to be a member of the club.