0% found this document useful (0 votes)
122 views21 pages

Database Management ALL PYQ {Pran Tehare}

Uploaded by

Shubham Gire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
122 views21 pages

Database Management ALL PYQ {Pran Tehare}

Uploaded by

Shubham Gire
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 21

DR.

BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE


Supplementary End Semester Examination – Summer Semester 2023
Course: B. Tech. Branch: Computer /CSE Semester: V
Subject Code & Name: (BTCOC501) Database System
Max Marks: 60 Date:07/08/2023 Duration: 3 Hr.
z 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.
A) Illustrate the database characteristics. How they are different from File L2 6M
systems.
B) Illustrate about integrity and key constraints with suitable examples? L3 6M
C) Explain the importance of Null values in Relational Model. L2 6M

Q.2 Solve all two of the following.


A) Explain in detail, the form of a basic SQL query with a suitable L2 6M
example.
B) List out various SET comparison operator in SQL and also write about L3 6M
its use in writing SQL queries.

Q. 3 Solve any two of the following.


A) Write SQL Queries for the following set of tables: L3 6M

account(account_number, branch_name, balance)


branch (branch_name, branch_city, assets)
customer (customer_name customer_street, customer_city)
loan (loan_number, branch_name, amount)
depositor((customer_name, account_number)
borrower(customer_name, loan_number)

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

EMPLOYEE (FNAME, MINIT, LNAME, SSN, BDATE, ADDRESS, SEX,


SALARY, #SUPERSSN, #DNO),
DEPARTMENT (DNAME, DNUMBER, #MGRSSN, MGRSTARTDATE),
DEPT_LOCATIONS (#DNUMBER, DLOCATION),
PROJECT (PNAME, PNUMBER, PLOCATION, #DNUM),
WORKS_ON (#ESSN, #PNO, HOURS),
DEPENDENT (#ESSN, DEPENDENT_NAME, SEX, BDATE,
RELATIONSHIP)

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.

Q.4 Solve all two of the following.


A) State BCNF. How does it differ from 3NF? L2 6M
B) Explain insertion, deletion and modification anomalies with suitable L2 6M
examples.

Q. 5 Solve any two of the following.


A) Explain in detail about internal hashing Techniques. L2 6M
B) Discuss in detail about cluster and Multilevel indexes. L2 6M
C) Explain Concurrency control with locking methods. L2 6M
*** End ***
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
Supplementary Examination – Summer 2022
Course: B. Tech. Branch : Computer Science & Engineering
Semester :VI
Subject Code & Name: (BTCOC501), Database Systems
Max Marks: 60 Date: 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.
A) Explain purpose of database system. Remembering 6
B) Explain Data Abstraction. Understanding, 6
applying
C) Explain data storage & Querying. Understanding 6

Q.2 Solve Any Two of the following.


A) Give formal definition of tuple relational calculus and explain it. Remembering 6
B) Explain aggregation in relational algebra. Understanding, 6
applying
C) Explain domain relational calculus. Remembering 6

Q. 3 Solve Any Two of the following.


A) Consider following schema & Solve following queries by SQL. 6
Instructor ( id, name, department name, salary)
Teaches ( id, course_id, sec_id, semester, year)
Course ( couse_id, tittle, department name, credits )
Department( department name, building, budget ) Understanding,
analyze
a. Find the set of all courses taught in summer 2020 semester
but not in winter 2021.
b. List the names of instructor with salary amounts between
90000 and 100000.

B) Explain aggregation with example. Remembering 6


C) Explain Function and procedure with example. Understanding, 6
analyze

Q.4 Solve Any Two of the following.


A) Construct B+ tree for the given set of key values ( 6
Understading,
2,3,5,7,11,17,19,23,29,31) using four & six pointers that will fit in one
applying
node.
B) Suppose that we are using extendable hashing on a file that contains 6
records with the following search key values (2,3,5,7,11,19,23,29,31) Understanding,
show the extendable hash structure for this file if the hash function is applying
h(x) = x mod 8 and buckets can hold three records.
C) Explain BCNF. Understanding, 6
analyze

Q. 5 Solve Any Two of the following.


A) Explain ACID properties of transaction. Remembering 6
B) Explain serializability. Understanding, 6
analyze
C) Explain deadlock handling. Understanding, 6
*** End ***
The grid and the borders of the table will be hidden before final printing.
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
Winter Examination – 2022
Course: B. Tech. Branch : CSE Semester : V
Subject Code & Name: BTCOC501
Max Marks: 60 Date:28/01/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) Why would you choose a database system instead of simple storing data in L1,L2/CO 6
file processing system? Compare file processing system and DBMS. 1
B) Define an Entity and Attribute. Explain the different types of attributes that L2/CO1 6
occur in an ER diagram model, with an example.

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.

Q.2 Solve Any Two of the following. 12


A) Define and differentiate the following relational algebra operators with L1,L2/ 6
suitable example: CO2
(i) Cartesian product (ii) Natural join
B) Consider the following relational schema. L3,L5/ 6
Suppliers(sid, sname, address) CO2
Parts(pid, pname, address)
Catalog(sid, pid, cost)
(i) Write relational algebra query to find the names of suppliers who supply
some red part
(ii) Write relational algebra query to find the sid of suppliers who supply
some red or green parts

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.

Q. 3 Solve Any Two of the following. 12


A) Consider the following schema and solve following queries using SQL. L3,L5/ 6
CO2
employee (emp_no, name, skill ,pay_rate)
position (posting_no, skill)
duty-allocation (posting_no, emp_no, day, shift)
(i) Get duty allocation details for emp_no 123461 for the month of april
1986.

(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.

B) Consider the following relational schema. L3,L5/ 6


Weather (city, temperature, humidity, condition) CO2
Location (city, country)
Write the following queries in SQL:
(i) Find all the tuples having temperature greater than that of Paris.

(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.

Q.4 Solve Any Two of the following. 12


A) What is Normalization? Explain the importance of normalization.What is L2/ CO3 6
the criteria for good relation design?
B) Explain BCNF with suitable example and distinguish between BCNF and L2,L3,L4/ 6
3NF. CO3
Is relation R(student_no, course_no,instr_no) with

F = { {student_no, course_no}  instr_no, instr_no course_no}

in BCNF and 3NF? Justify your answer.

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.

Q. 5 Solve Any One of the following. 12


A) Explain ACID properties in detail L2/CO5 6
B) What are ordered indices? Explain with suitable example. Distinguish L2,L4/ 6
between dense index and sparse index. CO4
C) Construct a B+-tree for the following set of key values: L3/ CO4 6

(2, 3, 5, 7, 11, 17, 19, 23, 29, 31)


Assume that the tree is initially empty and values are added in ascending
order. Construct B+-trees for four pointers that will fit in one node
*** End ***
The grid and the borders of the table will be hidden before final printing.
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE Q. 3 Solve Any Two of the following. 12
Summer Examination – 2023 A) What is Normalization? Explain various anomalies with suitable example.
02/CO3 6
Course: B. Tech. Branch : Electronics & Computer Engineering Semester :IV
B) A company has following entities and respective attributes, where EmpPhone is
Subject Code & Name: Database Management System (BTECPC402)
a multivalued and Address is a composite attribute. Draw the ER-Diagram for
Max Marks: 60 Date: 15.07.2023 Duration: 3 Hr.
the same;
Instructions to the Students:
1. All the questions are compulsory. Entity Attributes 03/CO3 6
2. The level of question/expected answer as per OBE or the Course Outcome (CO)
Employee EmpId, EmpName, Gender, DoJ, Designation, EmpSal
on which the question is based is mentioned in ( ) in front of the question.
3. Use of non-programmable scientific calculators is allowed. Contact Details EmpPhone, EmpMailID, Address
4. Assume suitable data wherever necessary and mention it clearly. Department DepId, DepName, DepLocation, DepHead.
(Level /
Marks Project ProjId, ProjName, ProjLocation,ProjDuration
CO)
Q. 1 Solve Any Two of the following. 12
C) Solve the following
A) With help of a diagram, explain the difference between 2-tier and 3-tier
02/CO1 6 a. Find the Primary & Non-Primary Attributes of
architecture. Justify which architecture is better suited for web applications? 03/CO3 6
R (A,B,C,D,E) FD: {A BCDE, BC ACE, D E}
B) Describe with a diagram the level of abstractions available in database systems. 02/CO1 6 b. Identity whether the given equations is in 2NF or not
R (A,B,C,D) FD: {AB CD, C A, D B}
C) Describe the components of a a) Query Processor b) Storage Processor 02/CO1 6
Q.4 Solve Any Two of the following. 12
A) Draw a state diagram and discuss the typical states that a transaction goes 03/CO4 6
Q.2 Solve Any Two of the following. 12 through during execution.
A) Write SQL commands,
B) What is concurrency control? Explain lock based protocols for concurrency 02/CO4 6
i. To Create table for following schema: Student {Roll-No (PK), Name, control.
Class, DOB}
03/CO2 6 C) Describe shortly
ii. To add new column percentage to student table. 02/CO4 6
a) Database Recovery Techniques
iii. To drop column DOB from student table. b) Causes of Database failures

Q. 5 Solve Any Two of the following. 12


B) Consider an EMPLOYEE table having Eid, Name, Age, Address, and Salary.
A) State the CAP theorem. Explain each term of CAP with suitable example. 01/CO5 6
Using subqueries, write a query to
B) Describe the concept of Document and Collection in MongoDB. 02/CO5 6
i) Display all details where Salary>45000
03/CO2 6 C) For MongoDB, write a query to 03/CO5 6
ii) Delete all the records of employee whose age<20.
a) Create a collection named Library
iii) Display name & salary of employee having second highest salary. b) Create a document named using data given below
BN101, “Database System Concepts”, ”Henry Korth”, 800.50.
c) Insert the following book details using single query.
C) Explain Inner, Left Outer and Right Outer Joins with suitable example. 02/CO2 6 BN102, “Core Java”, “Nageswara Rao”, 650.75.
BN103, “Let Us C”, “Balaguruswamy”, 400.50.
BN104, “DBMS”, “G.D. Patil”, 250.5
d) Retrieve / Display all the above documents
e) Update the Author name to “Y Kanetkar” for BookId BN103
f) Delete a document with BookId BN104.
*** End ***
5 C 6 A 7 2 2
85 AC 6F 943 E96 CA 2C A77 812 FC 652 1F BB5
85 AC 6F9 943E E96 CA 2CAA77 812 FC6 652 1FB BB5 85A
A 6 C 2 8 F 1 8
5A C6 F94 43E9 96C A2 CA7 778 12F C65 521 FBB B58 5AC C6F
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 C6F 94 3E9 5 F B
F 9 C 7 1 5 F B 5 C 3 6
6F 943 3E96 6CAA2C A7 781 2FC C652 21F BB 585 AC 6F9 943E E96 CA
7 2 B 5 A 6 C 2

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.

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

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

1NF,2NF,3NF and BCNF.


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
Instructions to the Students:
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

instances with suitable example.


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

Q.2 Solve Any Two of the following.


Q. 1 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
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB B5 5A C6 94 E 6C

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

iv) Find total number of teachers from each department.


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

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.

Update Department ETC to ECE for all students belonging to ETC.


4. Assume suitable data wherever necessary and mention it clearly.

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.

B) What is the need of Normalization? Write necessary conditions for


B) What is RDBMS? Explain data model of RDBMS. Define Schema and

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 AC 6F9 A2 CA 778 12 C6 521 FB 58 5A C6 94 E9 6C 2C A7 781 2F 65


A 6
(Level/CO)

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)

A2 CA 778 12 C6 521 FB 58 5A C6 94 E9 6C 2C A7 781 2F 65 21F BB


queries

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" : [

58 5AC 6F 943 E9 CA 2C A7 81 2FC 65 1F BB 585 AC 6F9 43E 96 CA CA


"dbms" ],
component in brief.

5A 6 94 E9 6C 2 A7 78 2F 65 21 BB 58 AC 6F 43 9 CA 2C 7
"DS" : 20,

C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781


"DA" : 12},
"name" : "Arav",

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 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
"city" : "Aurangabad",

C) Write a short note of Redis.


Truncate a table.

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
Dropping a keyspace.

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.

Q. 5 Solve Any Two of the following.


Q. 3 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

Update city of roll=1 to “Latur”.

B) Explain properties of graph database model.

F9 3E 96C A2 CA 77 12 C6 521 FB B5 5A C6 94 3E9 6C 2 A7 78 2F


Update DS marks of roll=3 to 18.

Deleting particular record in table.

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.

Inserting records in a table under keyspace.

*** End ***


Creating keyspace with replication factor 3.
Insert above schema in “student” collection.
Show all the records in “student” collection.

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

C6 F94 3E 6C A2 CA 78 12F C6 21 FB 58 5A 6F 94 E9 6CA 2C A7 781


vi) Rename “Department” column in Students table to “Branch”.

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 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
Write a suitable example for following Cassandra operation (Query).
B) Consider the following JSON document schema and answer the MongoDB

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

77 812 FC 652 1FB B5 85A C6 F94 3E 96C A2 CA 778 12F C6 52


81 FC 65 1F B 85 C F9 3E 96 A CA 77 12 C 52
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
52 FB B5 5A C6 F94 3E 6C A2 A 78 2F C6 21 B
1F B 85 C F9 3E 96 A CA 77 12 C 52 FB
6
6
6
6
6
6
6
6
6

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.

Q.2 Solve Any Two of the following. 12


A) Define Normalization. Explain1NF, 2NF, 3NFwithexample. KCO2 6
B) What is ER model? Explain various symbols/componentsused in ER diagram. U/CO2 6
C) Explain in detail the Data Model and its types. U/CO2 6

Q. 3 Solve Any Two of the following. 12


A) Differentiate between RDBMS and NoSQL databases. K/CO3 6
B) Explain in detail about CAP theorem. U/CO3 6
C) Describe the properties of Key-Value Store. U/CO3 6

Q.4 Solve Any Two of the following. 12


A) Discuss characteristics of columnar databases. U/CO4 6
B) Describe distributed database system with suitable diagram U/CO4 6
C) Elaborate suitable use cases of document databases. A/CO4 6

Q. 5 Solve Any Two of the following. 12


A) Explain various graph representation techniques (data structures) with suitable U/CO5 6
examples.
B) Explain LSM trees in detail. U/CO5 6
C) Explain properties of graph database model. U/CO5 6
*** End ***
SHREE SIDDHESHWAR WOMEN’S COLLEGE OF ENGINEERING, SOLAPUR
Preliminary Examination – 2023-24
Course: T.Y (A Div) Branch: CSE Semester: V
Subject Code & Name: BTCO501 Database System
Max Marks: 60 Date: Duration: 3 Hr.
Instructions to the Students:
1. All the questions are compulsory.
2. Each question carries 12 marks.
(Level/CO) Marks
Q. 1 Solve Any Two of the following. 12
A) 1Explain data abstraction and different data models in DBMS L2/CO1 6
B) Explain different advantages of DBMS over file processing system. L2/CO1 6
C) Define DBMS. List component of DBMS. L1/CO1 6

Q.2 Solve Any Two of the following. 12


A) Explain unary and binary operations in relational algebra L5/CO2 6
B) Explain Inner Join & Outer Join in Details L5/CO2 6
C) 1. Let the following relation schemas be given: L4/CO2 6
R = (A, B, C) S = (D, E, F)
Let relations r(R) and s(S) be given. Give an expression in the tuple
relational calculus that is equivalent to each of the following:

Q. 3 Solve Any Two of the following. 12


A) Explain group by, having clause of SQL with example L5/CO3 6

B) What is view? How to create & Delete view. L2/CO3 6

C) From given tables, write SQL queries for following L4/CO3 6

Salesman( s_id, name, city , commission)

Customer (c_id, c_name, city, grade, s_id)


Orders (o_no, amount, date_of_order, customer_id)
a.Find out name of customer for each order

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

d.Find out city wise count of customers

e.Find out names of customers who lives in same city as that of salesman

f.Find c_id,s_id and date of each order

Q.4 Solve Any Two of the following. 12


A) Demonstrate B+ tree of order 3 with the following data(key) L4/CO4 6
(2,3,5,7,11,17,19,23,31)
B) Write a short note on: i) 1NF ii) BCNF iii) 4NF L1/CO4 6
C) Define ordered indices. Differentiate between dense indices and sparse indi- L3/CO4 6
ces with suitable example.

Q. 5 Solve Any Two of the following. 12


A) What is need of lock in DBMS? Explain shared lock and exclusive lock with L2/CO5 6
the help of example.

B) Explain transaction process state diagram. L5/CO5 6

C) Explain different concurrency control protocols. L5/CO5 6

*** End ***


SHREE SIDDHESHWAR WOMEN’S COLLEGE OF ENGINEERING
Computer Science and Engineering Department
Preliminary Examination
Course: TY.B. Tech-CSE Sem-VII
Subject Name: Database System Subject Code:BTCOC501
Max Marks: 60 Date: Duration: 3Hrs
Inst-ructions:
1) Each Question carries 12 marks.
2) Assume the suitable data wherever necessary and mention it clearly. CO Level Marks
Q.1 Attempt any TWO.
a)Explain E-R Model with the help of example. CO1 L2 06
b)Explain Codd’s Rule CO1 L2 06
c)Define attributes Explain Types of attributes with digrams. CO1 L2 06

Q.2 Attempt any TWO.


a) Explain following with respect to relational algebra: CO2 L3 06
CO2 L2 06
a. Natural Join b. Equi join c. left outer join d. full outer join CO2 L3 06
b) Explain domain relational calculus with the help of example
c) List and explain with the help of examples fundamental operations in
relational algebra.

Q.3 Attempt any TWO.


a) Given a set of FDs for the relation schema R (A,B,C,D) with Primary CO3 L2 06
key AB, and D → C or C → D or AC → D or AD → C or BC → D or BD CO3 L4 06
→ C. In which normal form is R? CO3 L2 06
b) What is Redundancy? Explain the anomalies in relational database
c) Define ordered indices. Differentiate between dense indices and sparse
indices with suitable example.
Q.4 Attempt any TWO.
a)List syntax of UPDATE and ALTER command. Demonstrate with suitable CO4 L2 06
example CO4 L2 06
b) Explain B+ tree with an example and how insertion works? CO4 L2 06
c) Make a comparison of hash file organization with heap file organization.

Q.5 Attempt any TWO.


a) What is need of lock in DBMS? Explain shared lock and exclusive CO5 L2 06
CO5 L6 06
lock with the help of example. CO5 L3 06
b) Write a short note on multiple granularity.
c) Explain different concurrency control protocols.

***
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.

Q.2 Solve Any Two of the following. 12


A) What is Relational algebra? Explain basic operations along with symbols of CO2/2 6
Relational Algebra.
B) Write Relational Algebra Queries for following. CO2/3 6

Note: Consider Relational Table - Account( Acno, AcName, Br_name,


Amount).
a) To display all tuples from Accounts table.
b) To display Acno, AcName from accounts.
c) To display the tuples for the account whose amount>25000 and
Br_name=”Dharashiv)
d) To display Acno, AcName, Amount From Account where the
amount>50000

C) Explain Equijoin, left join and right join with suitable example and write proper CO2/2 6
relational algebraic query for each of them.

Q. 3 Solve Any Two of the following. 12


A) Mention different SQL languages. Explain their purpose with suitable SQL CO3/1,2 6
commands.
B) Write the SQL Queries for the following. CO3/3 6
a) Creating, Using, showing and deleting databases.
b) To create BOOK table with Bkid, Title, Author, branch, cost and date of
publishing. (Assume proper data type for each column).
c) Write query to insert 2 valid rows of values into the BOOK table.
d) Write query to increase the length of Title and Author.
e) Write query to list books with cost less than 100.
f) Write query to list all books with title “RDBMS”.

C) Consider the following schema: CO3/3 6

Suppliers (sid : integer, sname : string, address : string)


Parts (pid : integer, pname : string, color : string)
Catalog (sid : integer, pid : integer, cost : real)
Write query for the following

a) To create above tables


b) Find the name of suppliers who supply some red parts
c) Find the sids of suppliers who supply some red or green parts
d) Find the sids of suppliers who supply some red part or are at 221 packer
Ave
e) Find the sids of suppliers who supply some red part and some green part

Q.4 Solve Any Two of the following. 12


A) What is normalization? Why one need to normalize the database tables? CO4/2 6
st nd rd
B) Explain 1 , 2 and 3 normal form with the help of suitable example. CO4/2 6
C) Why we need to organize database files? Mention the type of organisations, and CO3/2 6
explain any one with suitable example.

Q. 5 Solve Any Two of the following. 12


A) Define Transaction and their properties with suitable example. CO5/2 6
B) Define serial and non-serial schedules. Explain serilisabilty with suitable example. CO5/2 6
C) Explain the need of concurrency control. Mention the concurrency control CO5/2 6
methods. Explain any one with suitable example.
*** End ***
DR. BABASAHEB AMBEDKAR TECHNOLOGICAL UNIVERSITY, LONERE
Supplementary Summer Examination – 2024
Course: B. Tech. Branch : Computer Engineering/Computer Science and Engineering
Subject Code & Name: Database Systems (BTCOC501) Semester :V
Max Marks: 60 Date:01/07/2024 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) Draw and explain the detailed system architecture of DBMS. Understand 6
B) Explain in detail about various key constraints used in database system. Understand 6
C) Discuss the main characteristics of the database approach and specify how Analysis 6
it differs from traditional file system?

Q.2 Solve Any Two of the following. 12


A) Write a short notes on Understand 6
i) Foreign Key ii) Relation state iii) Database schema.
B) account(account_number, branch_name, balance) Apply 6
branch (branch_name, branch_city, assets)
customer (customer_name ,customer_street, customer_city)
loan (loan_number, branch_name, amount)
depositor((customer_name, account_number)
borrower(customer_name, loan_number)
Write the following queries in SQL:
1)For all customers who have a loan from the bank, find their names, loan
numbers, and loan amount.
2) Find the customer names, loan numbers, and loan amounts, for all
loans at the Panvel branch.
3)Find the names of all branches that have assets greater than those of at
least one branch located in Mumbai.
4)Find the average account balance of those branches where the account
balance is greater than Rs. 1500.
5) Find the maximum across all branches of the total balance at each
branch.
C) Write the SQL syntax for the following with example: Understand 6
1)SELECT 2) ALTER 3)UPDATE

Q. 3 Solve Any Two of the following. 12


A) Write an SQL query for the following: Apply 6
a)To create a table of Hospital database with minimum 4 fields
b) To insert two records
c) To add new field
d)To display all records
B) What are JOINS? Explain INNER JOIN and OUTER JOIN. Understand 6
C) Explain different types of trigger. Understand 6

Q.4 Solve Any Two of the following. 12


A) State BCNF. How does it differ from 3NF? Analysis 6
B) Explain about dynamic multilevel indexing using B+ trees. Understand 6
C) Define Multi-valued dependency. Explain the Fourth normal form with an Understand 6
example.

Q. 5 Solve Any Two of the following. 12


A) Explain in detail about timestamp based concurrency control techniques. Understand 6
B) Explain ACID properties of a transaction. Understand 6
C) Explain how Concurrency control can be achieved with locking methods? Understand 6
*** End ***

You might also like