2.1 DBMS Assignment1
2.1 DBMS Assignment1
1. Explain terms: Metadata, Integrity Constraints, Data Model, Entity, Mapping cardinalities
2. Differentiate (1) Instance and Schema (2) DDL and DML (3) Procedural and Declarative DML
3. Why would you choose a database system instead of simply storing data in operating system files?
When would it make sense not to use a database system?
4. What is logical data independence and why is it important? Explain the difference between logical
and physical data independence.
5. What are the responsibilities of a DBA? If we assume that the DBA is never interested in running
his or her own queries, does the DBA still need to understand query optimization? Why?
6. What is a foreign key constraint? Why are such constraints important? What is referential
integrity?
7. Explain the three level architecture of DBMS. Draw a diagram to explain it.
8. Define Superkey, Candidate key, Primary Key and Foreign Key. Identify these keys from following
tables.
Table : Student
Enrolment No Roll No Name Branch Semester BirthDate
Table : Project
Project No Title Platform Enrolment No Duration
9. 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:
• We have a set of teams, each team has an ID (unique identifier), name, main stadium, and to which
city this team belongs.
• 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.
• 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.
• For each match we need to keep track of the following:
The date on which the game is played
The final result of the match
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.
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.
******