DBMS QUESTION BANK

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

SUBJECT: DATABASE MANAGEMENT SYSTEMS –3130703

3thSem. CSE

Question-Bank

1. Define Database. What are the advantages of DBMS?


2. List and explain DML statements with suitable example.
3. Explain following relation algebra operations: (i) full outer join (ii) projection (iii) Cartesian product.
4. Describe GRANT and REVOKE commands with suitable example.
5. Consider the relational database given below. Give an expression in the relational algebra to express
each of the following queries:
Employee (person-name, street, city) , Works (person-name, company-name, salary) Company
(company-name, city) , Manages (person-name, manager-name)
1) Find the names of all employees in this database who live in the same city as the company for which
they work.
2) Find the names, street address, and cities of reside
6. Consider following relations and write SQL queries for given statements. Assume suitable constrains.
Instructor(ID, Name, Dept_name , Salary), Teaches(ID, Course_id, Sec_id, Semester(even/odd),Year)
1) Write SQL query to create Instructor table.
2) Find the average salary of the instructors in computer department.
3) Find the number of instructors in each department who teach a course in even semester of 2016.
4) Find the names of instructor with salary amounts between 30000 and 50000.
7. Draw E-R diagram for bank management system.
8. Consider following schema and write SQL for given statements.
Client_master(clientno, name, address, city, pincode, state, baldue), Product_master(productno,
name, profitpercent, unitmeasure, sellprice, costprice),
Salesman_master(Salesmanno,name,address,city,pincode,state,salary,tgtotget, remarks)
1) Find out the names of all clients.
2) List all the clients who are located in Mumbai.
3) Delete all salesmen from salesman_master whose salaries are equal to Rs.3500.
4) Destroy the table client_master along with data.
5) List the name of all clients having ‘a’ as the second letter in their names.
6) Count the number of products having cost price is less than or equal to 500.
7) Calculate the average, minimum and maximum sell price of product.
9. List the reason why NULL values introduces might be introduces in database.
10. Consider the following relational database, where the primary keys are underlined.
Give an expression in the relational algebra to express each of the following queries:
employee (ssn, name, dno, salary, hobby, gender), department (dno, dname, budget, location, mgrssn)
works_on (ssn, pno) , project (pno, pname, budget, location, goal)
1) List all pairs of employee names and the project numbers they work on.
2) List out department number, department name and department budget.
3) List all projects that Raj Yadav works on by project name.
4) List the names of employees who supervise themselves.

12. Consider the following employee database, primary keys are under-lined :

employee (employee-name, street, city) , works (employee-name, company-name, salary) , company


(company- name, city), manages (employee-name, manager_name) Give an expression in SQL for each of
the following queries:

1) Find the names of all employees who work for First Bank Corporation.

2) Give all employees of First Bank Corporation a 10-percent raise.


3) Find the names and cities of residence of all employees who work for First Bank Corporation.

4) Find the names, street addresses, and cities of residence of all employees who work for First Bank
Corporation and earn more than $10,000.

5) Find all employees in the database who live in the same cities as the companies for which they work.

6) Find all employees in the database who do not work for First Bank Corporation.

7) Find the company and number of employees in company that has more than 30 employees.

13. Explain the three level Architecture of DBMS. Explain features of DBMS.
14. Who is DBA? Explain the responsibility of DBA.
15. Explain Database Languages (DDL, DML).
16. Define: (1) Data (2) Entity (3) Meta Data (4) Super key (5) Not Null (6) Primary key (7) Foreign key
17. Draw an Entity relationship diagram for the Hospital Management System.
18. Draw an Entity relationship diagram for the College Management System.
19. Consider following schema and write SQL for given statements.
Client_master (client_no, name, address, city, pincode, state)
Product_master (product_no, name, profitpercent, unitmeasure, sellprice, costprice)
Salesman_master (Salesman_no, name, address, city, pincode, state, salary, remarks)
1) Find out the names of all clients.
2) List are all the clients who are located in Mumbai.
3) Delete all salesman from salesman_master whose salaries are equal to Rs 3500.
4) Destroy the table client_master along with data.
5) List the name of all clients having ‘a’ as the second letter in their names.
6) Count the number of products having cost price is less than or equal to 500.
7) Calculate the average, min, max sell price of product.
20. Define view. Write syntax to create view. Give an example of view.
21. What is Relational Algebra? Enlist and Explain the fundamental operation of relational algebra.
22. Explain difference b/w strong entity set and weak entity set.
23. Explain disadvantages of file processing systems compare to DBMS
24. Describe GRANT and REVOKE commands with example.
25. List and Explain Aggregate functions of SQL with example.
26. What is constraint? Explain types of constraints.
27. What is Transaction? List and explain ACID property of transaction.
28. Consider following set F of functional dependencies on schema R (A, B, C) and compute canonical
cover for F. ( A->BC, B->C, A->B, AB->C).
29. Why should normalization be performed on a table and what are its benefits. Explain 1nf, 2nf, 3nf
and BCNF.
30. What is redundant functional dependency? Explain trivial and non trivial functional dependency
with example.
31. Explain system recovery procedure with checkpoint record concept.
32. Explain log based recovery model.
33. Explain conflict serializability and view serializability with example.
34. Consider schema R= (A, B, C, G, H, I) and set F of FD ( A->B, A->C, CG->H, CG->I, B->H) prove AG-> I.
holds.
35. Compute the closure set F of FD for relational schema R(A, B, C, D, E) (A->BC, CD->E, B->D, E->A).
List the candidate keys for R.
36. Elaborate Normalization. Explain any two normal forms with suitable example(s ).
37. What is Normalization? Normalize below given relation up to 3NF.
STUDENT: Stu Name City Pin code Project ID Project Course Content
Stu ID Name
S101 Ajay Surat 326201 P101 health programming C++,
Java,C
S102 Vijay Pune 325456 P102 social WEB HTML,PHP
,ASP

You might also like