Database Management ALL PYQ {Pran Tehare}
Database Management ALL PYQ {Pran Tehare}
a. For all customers who have a loan from the bank, find their names
and loan numbers with the attribute loan_number replaced by
loan_id.
b. Find the names of all customers whose street address includes the
substring ‘Main’.
c. List loan data, ordered by decreasing amounts, then increasing loan
numbers.
B) Write SQL Queries for the following set of tables: L3 6M
a. Retrieve the name and address of all employees who work for the
‘Research’ department
b. Retrieve the birthdate and address of the employee(s) whose name
is ‘Raj V Naik’
c. Retrieve all the attributes of an EMPLOYEE and the attributes of
the DEPARTMENT he or she works in for every employee of the
‘Research’ department
C) By considering an example describe various data update operations in L2 6M
SQL.
C) Draw an E-R diagram of Banking system taking into account at least five L3/CO1 6
entities, indicate all keys, constraints and assumptions that are made.
C) Consider the following employee database. Give expression in tuple rela- L3,L5/ 6
tional calculus for each of the following queries. CO2
employee(employee_name,street,city)
works(employee_name,company_name,salary)
company(company_name,city)
manages(employee_name,manager_name)
(i)Find the names of all employees who work for First Bank Corporation.
(ii)Find the names and cities of residence of all employees who work for
First Bank Corporation
(iii)Find all employees who live in the same city as that in which the com-
pany for which the work is located.
(ii) Get employees whose rate of pay is more than or equal to the rate of pay
of employee ‘XYZ’.
(iii) Get the names and pay rates of employees with emp_no less than
123460 whose rate of pay is more than the rate of payoff atleast one em-
ployee with emp_no greater than or equal to 123460.
(ii) Find the names of those cities with temperature and condition whose
condition is neither Sunny nor Cloudy but temperature must be greater than
70.
(iii) Find all the cities with temperature, condition and humidity, whose hu-
midity is in the range of 63 to 79.
C) What is view? What are its advantages? Explain views in SQL with suitable L2/ CO2 6
example.
C) Consider the relation schema R=(A,B,C,G,H,I) and Set of functional de- L3,L4/ 6
pendencies:
CO3
A→B
A→C
CG → H
CG → I
B→H
Compute (AG)+.Is it candidate key? Justify your answer.
A)
C)
F9 943E E96C CA2 2CAA77 812 FC6 6521 1FB B5 85A C6 F94 43E9 96C A2 CA7
4 8 F 8 F A C
94 3E9 96C A2C CA7 7781 12F C65 521F FBB B585 5AC C6F 943 3E96 6CA 2C A77 781
i)
3E 6C A2 A 78 2F C6 21 B 58 A 6F 94 E9 C 2C A7 81 2F
v)
ii)
43 96 A C 77 12 C 52 FB B5 5A C6 9 3E 6C A2 A 78 2 C6
E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC 52
Tid
Tid
6C 2 A 78 2F C6 21 BB 58 A 6F 943 E9 CA 2C A7 81 FC 65 1F
i)
ii)
iii)
A2 CA 778 12 C6 521 FB 58 5A C6 94 E9 6C 2C A7 781 2F 65 21F BB
CA 77 12 FC 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 BB 58
Student:
RollNo
Teacher:
Teaches:
77 812 FC 652 1FB B5 85A C6 F94 3E 96C A2 CA 778 12F C6 521 FBB 58 5A
81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52 FB 5 5A C6
2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F B 85 C F9
“Pune”.
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F BB 58 AC 6F 43
52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B 58 5A 6F 943 E9
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB B5 5A C6 94 E 6C
Max Marks: 60
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B 85 C F9 3E 96 A2
Course: B. Tech.
Inner Join
TName
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781
Name
F9 3E 96C A2 CA 77 12 C6 521 FB B5 5A C6 94 3E9 6C 2 A7 78 2F
Natural Join
43 96 A C 77 812 FC 52 FB B5 85A C6 F9 3E 6C A2 CA 78 12 C6
E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC 52
Subjects_teaching
Left Outer Join
Class
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B 85 C F9 3E 96 A2
TDepartment
58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB 585 AC 6F9 43E 96 CA CA
1. All the questions are compulsory.
5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 58 AC 6F 43 9 CA 2C 7
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781
F9 3E 96C A2 CA 77 12 C6 521 FB B5 5A C6 94 3E9 6C 2 A7 78 2F
SDepartment
C) Explain Client/Server Architecture of DBMS.
43 96 A C 77 812 FC 52 FB B5 85A C6 F9 3E 6C A2 CA 78 12 C6
Subject Code & Name: DBMS BTAIC402
Branch :
E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC 52
6C 2 A 78 2F C6 21 BB 58 A 6F 943 E9 CA 2C A7 81 FC 65 1F
Branch
A2 CA 778 12 C6 521 FB 58 5A C6 94 E9 6C 2C A7 781 2F 65 21F BB
CA 77 12 FC 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 BB 58
Date: 18/08/2022
Salary
77 812 FC 652 1FB B5 85A C6 F94 3E 96C A2 CA 778 12F C6 521 FBB 58 5A
Class
81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52 FB 5 5A C6
2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F B 85 C F9
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F BB 58 AC 6F 43
AI&DS
85AC6F943E96CA2CA77812FC6521FBB5
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781
F9 3E 96C A2 CA 77 12 C6 521 FB B5 5A C6 94 3E9 6C 2 A7 78 2F
Find all the teachers name whose salary is greater than 70000.
3. Use of non-programmable scientific calculators is allowed.
43 96 A C 77 812 FC 52 FB B5 85A C6 F9 3E 6C A2 CA 78 12 C6
E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC 52
6C 2 A 78 2F C6 21 BB 58 A 6F 943 E9 CA 2C A7 81 FC 65 1F
Address
A2 CA 778 12 C6 521 FB 58 5A C6 94 E9 6C 2C A7 781 2F 65 21F BB
Explain following types of joins in SQL with suitable example.
CA 77 12 FC 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 BB 58
77 812 FC 652 1FB B5 85A C6 F94 3E 96C A2 CA 778 12F C6 521 FBB 58 5A
81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52 FB 5 5A C6
Regular End Semester Examination – Summer 2022
iii) Find all students from class TY and Department AIDS whose address is
2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F B 85 C F9
Consider the following relational schema and write following SQL query.
Find the name of the teacher who is teaching DBMS to Roll No CS3031
which the question is based is mentioned in ( ) in front of the question.
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F BB 58 AC 6F 43
52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B 58 5A 6F 943 E9
A) What is DBMS? Explain the need of DBMS. Write any 3 application of DBMS.
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB B5 5A C6 94 E 6C
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B 85 C F9 3E 96 A2
58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB 585 AC 6F9 43E 96 CA CA
5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 58 AC 6F 43 9 CA 2C 7
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781
F9 3E 96C A2 CA 77 12 C6 521 FB B5 5A C6 94 3E9 6C 2 A7 78 2F
Semester :IV
43 96 A C 77 812 FC 52 FB B5 85A C6 F9 3E 6C A2 CA 78 12
Duration: 3.45 Hr.
Apply
85 E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC
2. The level of question/expected answer as per OBE or the Course Outcome (CO) on
85 AC 6C 2 A 78 2F C6 21 BB 58 A 6F 943 E9 CA 2C A7 81 FC 6
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
85 C F9 43E CA 77 12 FC 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6
Understand
Understand
Understand
Understand
Understand
85 AC 6F9 43E 96 77 812 FC 652 1FB B5 85A C6 F94 3E 96C A2 CA 778 12F C6 52
A 6
85 C F9 3E 6 A 4 9 C 81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52
A 6
85 C F 43 96 A C C 2 2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F
85 AC 6F9 943E E96 CA 2CAA77 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B
A 6 4 C 2 8
rks
9
Ma
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB
6
6
6
6
6
6
85 C F9 3E 6 A CA 77 12
C
85 AC 6F9 43E 96 A CA 77 12 FC6 2 8 BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B
58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB
85 AC 6F9 43E 96 CA 2CA 77 812 FC6 52 5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 5
A 6 4 C
85 C F9 3E 96 A CA 77 12 C6 52 FB 2 8 F 1 C6 F94 3E 6C A2 CA 78 12F C6 21 FB 5
85 AC 6F9 43E 96 CA 2CA 77 812 FC6 52 1FB B5 F9 3E 96C A2 CA 77 12 C6 521 FB B5
43 96 A C 77 812 FC 52 FB B5
85 AC 6F9 43E 96 CA 2CA 77 812 FC6 52 1FB B5 85A E9 CA 2C A7 81 F 65 1F B
AC 6F 43 96 CA 2C 77 81 FC 52 1F B 85 C 6C 2 A 78 2F C6 21 BB 5
5A 6 94 E9 C 2 A7 8 2F 65 1 BB 58 AC 6F A2 CA 778 12 C6 521 FB 5
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94
9 C 7 1
C6 F94 3E 6C A2 A 78 2F C6 21 B 58 5A 6F 94 E9 5 F B C 3 CA 77 12 FC 52 FB B5
F9 3E 96C A2 CA 77 12 C6 521 FB B5 5A C6 94 3E9 6C 77 812 FC 652 1FB B5
6F 43 96 A C 7 81 FC 52 F B 85 C F9 3E 6 A 81 FC 65 1F B
9 4 E 9 C 2C A 7
78 2F 6 1 BB 58 AC 6F 43 9 CA 2C
5 6
2F 65 21 BB 5
C6 21 FB 5
C)
F9 3E 6C A2 A 7 12 C6 21 FB 5 5A 6 94 E9 C 2 A7
4 8 F 8 F A C 52 F B B 5
1F B
94 3E9 96C A2C CA7 7781 12F C65 521F FBB B585 5AC C6F 943 3E96 6CA 2C A77 781 BB 5
}
3E 6C A2 A 78 2F C6 21 B 58 A 6F 94 E9 C 2C A7 81 2F
43 96 A C 77 12 C 52 FB B5 5A C6 9 3E 6C A2 A 78 2 C6 5
E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC 52
6C 2 A 78 2F C6 21 BB 58 A 6F 943 E9 CA 2C A7 81 FC 65 1F
i)
i)
v)
v)
ii)
ii)
vi)
iv)
vi)
iv)
iii)
iii)
CA 77 12 FC 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 BB 58
77 812 FC 652 1FB B5 85A C6 F94 3E 96C A2 CA 778 12F C6 521 FBB 58 5A
examples.
{ "_id" : 1,
81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52 FB 5 5A C6
2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F B 85 C F9
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F BB 58 AC 6F 43
"roll" : 1
20.
52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B 58 5A 6F 943 E9
"age" : 21,
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB B5 5A C6 94 E 6C
"DA",
"java",
"cmarks" : {
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B 85 C F9 3E 96 A2
"subjects" : [
5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 58 AC 6F 43 9 CA 2C 7
"DS" : 20,
2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F B 85 C F9
Q.4 Solve Any Two of the following.
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F BB 58 AC 6F 43
52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B 58 5A 6F 943 E9
Updating values in tables.
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB B5 5A C6 94 E 6C
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B 85 C F9 3E 96 A2
58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB 585 AC 6F9 43E 96 CA CA
5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 58 AC 6F 43 9 CA 2C 7
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781
B) Describe the properties of Key-Value Store
43 96 A C 77 812 FC 52 FB B5 85A C6 F9 3E 6C A2 CA 78 12 C6
E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC 52
6C 2 A 78 2F C6 21 BB 58 A 6F 943 E9 CA 2C A7 81 FC 65 1F
A2 CA 778 12 C6 521 FB 58 5A C6 94 E9 6C 2C A7 781 2F 65 21F BB
CA 77 12 FC 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 BB 58
77 812 FC 652 1FB B5 85A C6 F94 3E 96C A2 CA 778 12F C6 521 FBB 58 5A
81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52 FB 5 5A C6
A) Differentiate between RDBMS and NoSQL databases.
2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F B 85 C F9
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F BB 58 AC 6F 43
52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B 58 5A 6F 943 E9
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB B5 5A C6 94 E 6C
C) Describe distributed database system with suitable diagram.
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B 85 C F9 3E 96 A2
58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB 585 AC 6F9 43E 96 CA CA
5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 58 AC 6F 43 9 CA 2C 7
Create collection Student under “College” Database.
85AC6F943E96CA2CA77812FC6521FBB5
81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52 FB 5 5A C6
2F 65 21 BB 58 AC 6F 43 96 CA 2C 7 81 FC 65 1F B 85 C F9
Find names and roll numbers of students whose age is greater than
C6 21 FB 58 5A 6 94 E9 C 2C A7 781 2F 65 21F BB 58 AC 6F 43
A) Explain various graph representation techniques (data structures) with suitable
52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B 58 5A 6F 943 E9
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB B5 5A C6 94 E 6C
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B 85 C F9 3E 96 A2
58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB 585 AC 6F9 43E 96 CA CA
5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 58 AC 6F 43 9 CA 2C 7
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781
F9 3E 96C A2 CA 77 12 C6 521 FB B5 5A C6 94 3E9 6C 2 A7 78 2F
43 96 A C 77 812 FC 52 FB B5 85A C6 F9 3E 6C A2 CA 78 12
Apply
Apply
E9 CA 2C A7 81 F 65 1F B 85 C F 43 96 A C 77 12 FC
6C 2 A 78 2F C6 21 BB 58 A 6F 943 E9 CA 2C A7 81 FC 6
A2 CA 778 12 C6 521 FB 58 5A C6 94 E9 6C 2C A7 781 2F 65
CA 77 12 FC 52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6
and Apply
Understand
Understand
Understand
A) Draw Cassandra Architecture with various components. Explain each Understand
Understand
Understand
Understand
BB 58 AC 6F 43 96 CA 2C 77 81 FC 652 1F B
58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB
5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 5
C6 F94 3E 6C A2 CA 78 12F C6 21 FB 5
F 9 C 7 1 5 F B
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
Regular/Supplementary Summer Examination – 2023
Course: B. Tech. Branch : CSE(AI&DS)/AI&DS Semester : IV
Subject Code & Name: BTAIC402 Database Management System
Max Marks: 60 Date: 15-7-2023 Duration: 3 Hr.
Instructions to the Students:
1. All the questions are compulsory.
2. The level of question/expected answer as per OBE or the Course Outcome (CO) on
which the question is based is mentioned in ( ) in front of the question.
3. Use of non-programmable scientific calculators is allowed.
4. Assume suitable data wherever necessary and mention it clearly.
(Level/CO) Marks
Q. 1 Solve Any Two of the following. 12
A) What is DBMS? Explain the need of DBMS. Write any 3 application of DBMS R/CO1 6
B) What are the disadvantages of file processing system? R/CO1 6
C) With the help of block diagram, describe the basic architecture of a database R/CO1 6
management system.
b.Find out name of customer, who has placed 2nd highest amount of order
c.Find out names of customers who have placed order of higher amount than
Ram
e.Find out names of customers who lives in same city as that of salesman
***
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
Regular & Supplementary Winter Examination-2023
Course: B. Tech
Branch : Computer Engineering / Computer Science and Engineering
Semester :V
Subject Code & Name: BTCOC501 Database Systems
Max Marks: 60 Date:01-01-24 Duration: 3 Hr.
Instructions to the Students:
1. All the questions are compulsory.
2. The level of question/expected answer as per OBE or the Course Outcome (CO) on
which the question is based is mentioned in ( ) in front of the question.
3. Use of non-programmable scientific calculators is allowed.
4. Assume suitable data wherever necessary and mention it clearly.
(Level/CO) Marks
Q. 1 Solve Any Two of the following. 12
A) We develop database applications directly on top of file systems. But some CO1/3 6
problems arise because of this, Discuss those problems.
B) Explain two tier and three tier architectures of DBMS with schematic diagram and CO1/2 6
mention at least 1 example of each.
C) Draw the symbols of ER Diagram. Draw ER Diagram for Library Management CO1/2 6
System.
C) Explain Equijoin, left join and right join with suitable example and write proper CO2/2 6
relational algebraic query for each of them.