0% found this document useful (0 votes)
6 views2 pages

Assignmnet2 Dbms

This document outlines the course details for DBMS at CMR Institute of Technology, including prerequisites, course instructors, and assignment topics. It covers various concepts in database management such as relation schema design, SQL commands, and database transaction properties. The assignment includes practical SQL queries and theoretical questions related to database normalization and ACID properties.

Uploaded by

manojsasikumar21
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)
6 views2 pages

Assignmnet2 Dbms

This document outlines the course details for DBMS at CMR Institute of Technology, including prerequisites, course instructors, and assignment topics. It covers various concepts in database management such as relation schema design, SQL commands, and database transaction properties. The assignment includes practical SQL queries and theoretical questions related to database normalization and ACID properties.

Uploaded by

manojsasikumar21
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/ 2

CMR Institute of Technology, Bangalore

Department(s):CSE- Artificial Intelligence & Machine Learning

Semester: 04 Section(s): A Lectures/week: 04

Subject: DBMS Code: BCS403

Course Instructor: -Jeevitha R & Chandana KS


Course Starts 16.2.2025
Assignment # 01/L0 – Prerequisites: Set theory, Basic understanding of computer storage
Date of issue: 19.5.2025-22.5.2025

Explain the informal design guidelines used as measures to determine the quality of
a relation schema design. 6 3 L2
Differentiate between the following by taking suitable examples,
1
b i) Trivial and Non-Trivial Dependency 4 3 L2
ii) Prime and Non-prime attributes
Explain 1NF,2NF and 3NF.Consider the relation schema R (A, B, C, D, E, F, G, H, I,J)
and the functional dependencies
2a 10 3 L3
{AB->C, A->DE, B->F, F->GH, D->IJ}. Determine the candidate key and the highest
normal form for the above relation.

a Explain the syntax of SELECT command with 6 clauses. 6 3 L2


3
b What are the aggregate functions in SQL and its need? 4 3 L1
a Differentiate between nested query and correlated query with suitable examples. 5 4 L2
4
b What is a view in SQL? How to create a view in SQL? 5 4 L1

5 a Explain Specifying Constraints as Assertions in SQL with an example. 6 4 L2


b Explain three-valued logic in SQL. 4 4 L2
Consider the following relation schema and write SQL queries,
employee (person-name, street, city)
works (person-name, company-name, salary)
company (company-name, city)
i. Find the names, street address, and cities
of residence for all employees who work for 'First Bank Corporation' and
earn more than Rs.10,000.
ii. Find the names of all employees in the
6 a 10 4 L3
database who do not work for 'First Bank Corporation'.
iii. Find the names of all employees in the
database who earn more than every employee of 'Small Bank Corporation'.
iv. Update the salary of people working in
‘Infosys’ by 15%.
v. Display company wise, average salary
and maximum salary paid to the employees.

7 a Discuss the ACID properties of database transaction. 5 CO4 L2

b Define Schedule? Illustrate with an example. 5 CO4 L2


8 a Explain the following with examples a) Lost Update Problem b) 10 CO4 L2
Temporary Update problem
c)The unrepeatable read problem
9 a Demonstrate the Database Transaction with transaction diagram. 6 CO4 L2
b Differentiate between recoverable and irrecoverable schedules. 4 CO4 L2

10 a Explain CAP theorem. 5 CO5 L2


b What is NOSQL Graph database? Explain Neo4j. 5 CO5 L2
11 a Demonstrate the Two-phase locking protocol used for concurrency 10 CO5 L2
control and how it can lead to deadlocks.
12 a Write a program to demonstrate the CRUD operations in MongoDB. 10 CO5 L3

You might also like