Question 1 (Design ER Diagram):
Assume we have the following application that models soccer teams, the games they play, and the players in each team. In the design, we want to capture
the following:
1. We have a set of teams, each team has an ID (unique identifier), name, main stadium, and to which city this team belongs.
2. each team has many players, and each player belongs to one team. Each player has a number (unique identifier), name, DoB, start year, and shirt number that he uses.
3. Teams play matches, in each match there is a host team and a guest team. The match takes place in the stadium of the host team.
4. For each match we need to keep track of the following:
oThe date on which the game is played
oThe final result of the match
o The players participated in the match. For each player, how many goals he scored,
whether or not he took yellow card, and whether or not he took red card.
O During the match, one player may substitute another player. We want to capture this substitution and the time at which it took place.
- Each match has exactly three referees. For each referee we have an ID (unique identifier), name, DoB, years of experience
. One referee is the main referee and the other two are assistant referee.
Design an ER diagram to capture the above requirements. State any assumptions you have that affects your design Make sure cardinalities and primary keys are clear
Question 2
(Relational Model):
Map the ERD in Question 1 to create the relational model corresponding to the described application. Basically, list the CREATE TABLE statements with the attribute names, and appropriate data types. Also make sure to have the primary keys and foreign keys clearly defined.
Question 3: Gyan Gurukul is a software company that provides software related solution. Ashutosh Dubey who is the director of Gyan Gurukul want a three-level schema architecture for the Gyan Gurukul Company that provide better security also design a data abstraction for his client kataria publication, that is publisher of computer book. Assume suitable data that suits your requirement and design and explain the 3- schema architecture for the requirement.