You are on page 1of 1

1. Think of different users for the database. What types of applications would each user need?

To
which user category would each belong, and what type of interface would each need?
2. Choose a database application with which you are familiar. Design a schema and show a sample
database for that application. What types of additional information and constraints would you like
to represent in the schema? Think of several users of your database, and design a view for each.
3. If you were designing a Web-based system to make airline reservations and sell airline tickets,
which DBMS architecture would you choose?Why? Why would the other architectures not be a
good choice?
4. A database is being constructed to keep track of the teams and games of a sports league. A team has
a number of players, not all of whom participate in each game. It is desired to keep track of the
players participating in each game for each team, the positions they played in that game, and the
result of the game. Design an ER schema diagram for this application, stating any assumptions you
make. Choose your favorite sport (e.g., soccer, baseball, football).
5. Design an ER diagram of a BANK database. Each bank can have multiple branches, and each
branch can have multipleaccounts and loans.
a. List the strong (nonweak) entity types in the ER diagram.
b. Is there a weak entity type? If so, give its name, partial key, and identifying
relationship.
c. What constraints do the partial key and the identifying relationship of the weak
entity type specify in this diagram?
d. List the names of all relationship types, and specify the (min, max) constraint on
each participation of an entity type in a relationship type.Justify your choices.

NOTE: Refer Elmasri & Navathe book, 7th edition for figures.
6. Specify the following queries in SQL on the database schema in Figure 1.2.
a. Retrieve the names and major departments of all straight-A students (students who have a
grade of A in all their courses).
b. Retrieve the names and major departments of all students who do nothave a grade of A in
any of their courses.
7. In SQL, specify the following queries on the database in Figure 5.5 using the concept of nested queries
and other concepts described in this chapter.
a. Retrieve the names of all employees who work in the department that has the employee
with the highest salary among all employees.
b. Retrieve the names of all employees whose supervisor’s supervisor has ‘888665555’ for
Ssn .
c. Retrieve the names of employees who make at least $10,000 more than the employee who
is paid the least in the company.
8. Specify the following views in SQL on the COMPANY database schema
a. A view that has the department name, manager name, and manager salary for every
department
b. A view that has the employee name, supervisor name, and employee salary for each
employee who works in the ‘Research’ department
c. A view that has the project name, controlling department name, number of employees, and
total hours worked per week on the project for each project
d. A view that has the project name, controlling department name, number of employees,
and total hours worked per week on the project for each project with more than one
employee working on it

You might also like