Professional Documents
Culture Documents
DBMS Question Bank
DBMS Question Bank
CO2 Given a problem statement, identify the entities and their relations and draw
an E-R diagram and design database applying normalization.
CO3 Solve the given problem using Relational Algebra, Relational Calculus, SQL
and PL/SQL
CO4 Apply and relate the concepts of transaction, concurrency control, recovery
and security in database
CO1 Questions
1. Draw an Entity Relation diagram for the Hospital Management System. Consider
the different types of Patients with respect to Disease and In-Patient and
Out-Patient Department in the design. Consider the availability of all well
qualified Doctors. Consider various types of tests and operations to be
conducted. Assume suitable attributes.
2. Explain mapping cardinality.
3. What is Normalization? Normalize the following relation up to 3NF.
STUDENT:
Assume that each lecturer may teach many subjects but may not belong to more
than one department. Subject Code, Subject Name and Subject Level are
repeating fields. Normalize this data to Third Normal Form.
9. Draw ER diagram for university database consisting of four entities Student,
Department, Class and Faculty. Students have a unique id, the student can enroll
for multiple classes and has at most one major. Faculty must belong to the
department and faculty can teach multiple classes. Each class is taught by only
faculty. Every student will get a grade for the class he/she has enrolled in.
10. Explain properties of Normalization.
11. Explain Armstrong’s Axioms in detail.
12. Differentiate between strong entity set and weak entity set. Demonstrate the
concept of both using real-time examples using E-R diagrams.
CO3 Questions
❖ Display all the details of the employee whose salary is less than 10K.
❖ Display the Deptno in which Employee Seeta is working.
❖ Add a new column Dept name in table T2.
❖ Change the designation of Geeta from ‘Manager’ to ‘Senior Manager’.
❖ Find the total salary of all the employees.
❖ Display Empno, Ename, Deptno and Deptname.
❖ Drop the table T1.
❖ Display the name of students with RollNo whose name ends with ‘sh’.
❖ Display department wise total students whose total students are greater
than 500.
❖ List out the RollNo, Name along with CPI of Student.
❖ Create a RollNo field as the primary key for the existing Student table.
❖ Display the student name who got the highest SPI in semester 1.
❖ Display the list of students whose DeptCode is 5, 6,7,10.
❖ Create table Student_New from the student table without data.
7. Consider the following relational database schema consisting of the four relation
schemas:
passenger ( pid, pname, pgender, pcity)
agency ( aid, aname, acity)
flight (fid, fdate, time, src, dest)
booking (pid, aid, fid, fdate)
Consider above 3 tables, assume appropriate data and solve following SQL
queries:
❖ Find out unique values of DEPARTMENT from the Worker table.
❖ Print details of the Workers whose SALARY lies between 100000 and
500000.
❖ Print details of the Workers who have joined in Feb '2014.
❖ Fetch worker names with salaries >= 50000 and <= 100000.
CO4 Questions
CO5 Questions