0% found this document useful (0 votes)
5 views3 pages

UD2 Exercises

The document outlines various database design requirements for different applications, including a theatre production management system, a wholesale warehouse application, an art gallery maintenance system, an order management system for a telemarketing company, a sailing club member management system, and an advertising company management system. Each section details the entities, attributes, and relationships necessary for effective data management in their respective contexts. The document serves as a guide for creating relational databases tailored to specific business needs.

Uploaded by

ceci fernández
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
5 views3 pages

UD2 Exercises

The document outlines various database design requirements for different applications, including a theatre production management system, a wholesale warehouse application, an art gallery maintenance system, an order management system for a telemarketing company, a sailing club member management system, and an advertising company management system. Each section details the entities, attributes, and relationships necessary for effective data management in their respective contexts. The document serves as a guide for creating relational databases tailored to specific business needs.

Uploaded by

ceci fernández
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

Entity-Relationship Diagram Problems

1. A database is to be designed for the maintenance of theatre productions by


a company and their performances in various theatres across Spain. After
completing the preliminary analysis, the following requirements are
obtained:
- Each theatre production has an identifying code, title, authors, creation
date, and the book it is based on.
- Each production is performed by a group of actors/actresses, for whom
their id, first name, last name, stage name, photo, and the character or
characters they portray in each production are stored.
- It is considered that the life of a character is restricted to a single
production. For each character, a sequential code within the production
and their name will be stored.
- Productions are performed in theatres, for which the name, capacity, phone
number, email, address, postal code, and the city in which the theatre is
located are to be saved.
- For each production in each theatre, the number of times it will be
performed should be recorded.

2. We have been commissioned to create a software application for a


wholesale warehouse, of which we know the following:
- The warehouse employs staff, identified by an employee number. We also
want to store their first name, last name, address, and the department in
which they work. Each employee can only work for one department.
- For each department, we know its name, the employees who work there,
the department manager (who is an employee of the warehouse), and the
products it sells.
- For each product, we know its name, the manufacturer(s), the retail price,
the model number assigned by the manufacturer, and the model number
assigned by the warehouse.
- For manufacturers, we know their name, address, and the products they
supply along with their corresponding prices.

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.

6. An advertising company wishes to control the sponsors that appear in the


weekly programming of the radio stations where it places the contracted
advertisements.
- For the radio stations, the following information is desired: tax identification
number (CIF), name, postal address, name of the director, and the
frequency on which they broadcast, which is exclusively used by the station
within the province in which it is located. Radio stations can form networks
with a representative name in order to jointly carry out part of the weekly
programming. The headquarters of a radio network is one of the stations
within the network, although the director of the network does not
necessarily have to be the same as the director of this station. Radio
networks are associated with a media company that may control more than
one radio network. These companies are characterized by their CIF, and it is
also desired to know their name, the name of their director, and their postal
address.
- A radio program is broadcast in one or more time slots, characterized by the
start time, the day of the week on which it is aired, and its duration. This
program may be broadcast on one or several stations.
- The name of the program, which is unique, and its responsible are to be
known. A radio program can air advertisements from different sponsors.
The duration of the advertisements is measured in seconds per week, so
the cost of this advertising is calculated by multiplying this value by the
price per second associated with the radio program. A sponsor is identified
by the contract they have with the advertising company. It is necessary to
know the sponsor's name, as well as the duration and amount of the
contract.

You might also like