Key Questions
Key Questions
Department of MCA
RDBMS-22MCA15
Unit-I
4. Justify the significance of the role of actors and workers in a DBMS environment.
Entity types, Entity sets Attributes and Keys Relationship types, Relationship Sets, Roles and
Structural Constraints Weak Entity Types.
17. Construct an ER diagram for a Hospital Management System. Identify all the components
associated with the system.
18. Represent the ER structure for a Railway Reservation System. Identify all the components
associated with the system.
19. Design an ER diagram for a HR Management System. Represent Entities and weak entity,
attributes and key attributes, cardinality ratio, Relationships, participation constraints.
20. Construct an ER diagram for a Library Management System. Identify Entities and weak entity,
attributes and key attributes, cardinality ratio, Relationships, participation constraints.
21. Consider a multi-speciality hospital with a number of departments, rooms, doctors, nurses, and other
staff working in the hospital. Patients with different kinds of ailments come to the hospital and are
treated by multiple doctors. Some patients are admitted as in-patients if required. Design and
develop a database for the hospital to maintain the records of various departments, rooms, and
doctors in the hospital. Also maintain records of the regular patients, patients admitted in the
hospital, the treatment provided, and the concerned doctors.
22. Design and develop a database to maintain the details of different trains, train status, and
passengers. The record of train includes its number, name, source, destination, and days on which it
is available, whereas record of train status includes dates for which tickets can be booked, total
number of seats available, and number of seats already booked.
23. Develop an ER structure for a company. The employee data to contain the name, id, job title and the
department they are assigned to. The employees can have multiple job titles and can be assigned to
more than one department. Each department has an id and an address and there can be multiple
departments in a city.
Unit_- II
3. Design appropriate schemas and illustrate the following operations using relational algebra.
i. Selection and projection
ii. Union and Intersection
iii. Minus and Division
iv. Left outer join and right outer join
v. Cross product and join
4. Demonstrate the process of mapping ER structures to relations.
Patient(pid,pname,docid,roomno)
Staff(staffid,sname,designation)
Room(roomno,staffid,wardname)
Unit-III
2. Discuss on the various constraints in SQL. (primary, unique, foreign, domain, Not Null)
Doctor(docid,docname,specialization,experience,dob)
Patient(pid,pname,docid,roomno)
Staff(staffed,sname,designation)
Room(roomno,incharge,wardname)
6. Consider the following schemas of Question number 4.a and demonstrate the following tasks
Table creation
Modify the structure of tables
. Implementation of cascade
operations
Implementation of referential key
Implementation of cascade operations
Dropping an existing column and table
7. Consider the following schemas of Question number 4.a and and write queries to
Branch(Brno, brname,braddress,brhead)
Project(projid,projname,deptno,proj_head,budget,date_of_start,duration)
Create view to select the project details along with details of the department handling the
project.
Update the view to change the details of the department.
Create a view to display the employee with the details of the department and project handled
by the employee.
Update the above view to insert a new project.
Delete an existing project from the view.
Apply joining operations to illustrate left and right outer to fetch the details of the employees
and departments.
Fetch the name of the employee and department which is headed by a person who has
experience more than an average experience of all heads.
Find the project details of the employees who are working on the same project handled by
employee number 10.
Implement self join to find the employees who are born on the same month as employee
“Chandru”.
Find the name of the employee and department handling the same projects of “Rajesh”.
Find the project which has the third maximum budget and also handed by “Ravi”.
Find the employees who are born on the same year as the head of the department number 22.
Fetch the name of the department which is headed by the one with experience more than the
average experience of all employees.
Unit-IV
3. Apply the informal guidelines and construct a normalized relational database model for a Project
Management System, Hospital Management System, Employee Management System, Railway
Reservation System, Library Management System.
4. Design a relational database of a company that delivers various products to its customers. The
Company employs personnel who are either temporary or permanent. The company has various
departments headed by a manager. The company has projects that are handled by identified
employees of different departments and each project is headed by a project manager. Each
employee works in some department. An employee may possess a number of skills. Every manager
(including the MD) is an employee. A department may participate in none/one/many projects. At
least one department participates in a project. An employee may be engaged in none/one/many
projects. Project teams consist of at least one member.
6. Define multi-valued dependency. Demonstrate the normalization process for tables with multi-
valued dependencies.
Unit-V