A database records information about athletes competing at


Question 1: Relational algebra

A database records information about athletes competing at the Olympics. An athlete competes for a particular country in one or more events. Events take place at a scheduled day and time in a particular venue. The result (rank) is recorded for all athletes in the final of the event. The medal (gold, silver or bronze) is also recorded for the medal winners in the event.

Note that we are not considering team sports or heats in this example - only individuals competing in the finals.

The schema for this database is as follows: (note that primary keys are shown underlined, foreign keys in bold).

ATHLETE (AthleteNo, AthleteName, CountryName) COUNTRY (CountryName, NumberOfCompetitors) EVENT (EventName, ScheduledStart, VenueName) VENUE (VenueName, City, Capacity)

FINAL (AthleteNo, EventName, Rank, Medal)

Provide relational algebra (NOT SQL) queries to find the following information.

  1. List the name and country of all athletes.
  2. List the event name and scheduled start time for all events held in the Aquatics Stadium.
  3. List the names of athletes who competed in an event in Rio de Janeiro, Brasilia, or both.
  4. List the names of all Brazilian athletes who won a gold medal.
  5. List full details of the events that were held in venues with a capacity of over 60,000.
  6. List the name and city of all venues, and the events that were scheduled to be held in them (if any)
  7. List the names of Australian athletes who won a gold medal in an event held in the Velodrome.
  8. List the name of any athlete who was ranked 1 in both the Men's 200m and 400m.
  9. List the names of the athletes who did NOT win a medal in the Women's 1500m Freestyle.
  10. List the name of any athletes who won a gold medal in all the events he or she competed in.

Solution Preview :

Prepared by a verified Expert
Business Management: A database records information about athletes competing at
Reference No:- TGS02308262

Now Priced at $25 (50% Discount)

Recommended (90%)

Rated (4.3/5)