You are on page 1of 2

I Mid-Term Examination Oct-2021

B.Tech (5th Semester)


Branch:- Computer Science and Engineering
Subject Name:- Database Management System
Subject Code: -CS-502
Time: 1 1 hours Maximum Marks: 20
2
Note: - Attempt all questions.

CO Blooms
Question Marks addressed level PI
1 Very short questions
A Analyse different levels of abstraction in DBMS. 1 CO1 L4 1.3.1
Comparision between weak and strong entities and which one is generaly 2.2.4
1 CO1 L2,l4
B used in creating datbase.
C Classify different types of languages which are available in DBMS. 1 CO2 L2,L4 2.2.2
D Explain Referential Integrity Constraint in relational model. 1 CO2 L2 2.1.1
How relational algebra and relational calculus are differentiatie with each
1 CO2 L2,L3 1.3.1
E other?
2 Short questions

A 2 CO2 L2,L4 2.1.2


State the output of following queries for emp relation:-
a) Delete from emp where Id<220;
b) Drop table emp;
c) Truncate table emp;

B 2 CO1 L2 , L4 2.1.1

Identify different type of attributes represent in given figure and explain in


detail.
C 2 CO2 L2,L3 1.3.1
Difference between cross product and Natural join.
3 Long questions
Discuss the utility of :-
A a)Natural Join 3 CO2 L2,L4 4.1.2
b) Inner Join
c) Outer Joins
in DBMS and write the query in SQL.
OR

Why is the use of DBMS recommended? Explain by listing some of its


B 3 CO1 L2,L3 1.4.1
major advantages.

4 Very long question


Construct an ER diagram for a hospital with set of patients, doctors,
1.4.1
A and tests performed. Associate each entity with proper cardinality and 6 CO1 L2,L3
write the assumptions taken.
OR
Let us consider table named Employee and with using this table write
different SQL Queries

Query 1 : List the employee whose employee number is 100.


Query 2 : List the Employees whose name starts with ‘Ami’.
Query 3 : What is query to fetch first record from Employee table?
B 6 CO2 L2,L3 1.4.1
Query 4 : How to Show the Max salary and min salary together from
Employees table?
Query 5 : What is SQL Query to find maximum salary of each
department?
Query 6 :How Do you find all Employees with its managers?(Consider
there is manager id also in Employee table)

You might also like