Guru Nanak Institutions Technical Campus
(Autonomous)
Special Batch - Emerging Technologies
II B.Tech II Semester(2023-2024)
DBMS SET WISE ASSIGNMENT QUESTIONS(UNIT-II)
Set-1 (22WJ8A6601-22WJ8A6617)
1)Explain relational calculus?and Consider the Sailors and Boat Relation Schema for(L2,CO2)
a )Write a TRC query to find the names of sailors who have reserved boat 103.
b)Write a DRC query to find the names of sailors who have reserved red boat.
2)Write briefly about logical/Conceptual database design.( L2,CO2)
3)What are the SQL Statements to define (DDL)modify (DML),Retrive data base.( L2,CO2)
4) a)How to Eliminate Duplicates in Cartesian Product in Relational Algebra? .( L2,CO2)
b)Consider the following database schema to write queries in SQL.
EMP (eno, ename, ecity)
COMPANY (cid, cname, ccity)
WORKS-FOR (eno, cid, salary)
MANAGES (eno, mno) {Manager is also an employee}
a) Find the names of employees working for virtusa.
b) Find the company names situated in Hyderabad
c) List the employees working/reporting to “Mohan”.
Illustrate different Set operations in Relational algebra with an example.
Set-2 (22WJ8A6618-22WJ8A6631)
1)Define Domain Constraints and Write the purpose of Referential Integrity
.( L1,CO2)
2) How the database can be modified using relational algebra? .( L2,CO2)
3) a)Demonstrate how to add a NOT NULL column to a table with example.
b) Consider the following schema: .( L2,CO2)
Suppliers(sid: integer, sname: string, address: string)
Parts(pid: integer, pname: string, color: string)
Catalog(sid: integer, pid: integer, cost: real)
The Catalog relation lists the prices charged for parts by Suppliers. Write the following
queries in Tuple relational calculus:
1. Find the pnames of parts for which there is some supplier.
2. Find the snames of suppliers who supply every part.
3. Find the pnames of parts supplied by Acme Widget Suppliers and by no one else.
4. For each part, find the sname of the supplier who charges the most for that part
4)a)Explain about View (Destroying/Altering) with and Example.( L2,CO2)
b) State about SELECT, PROJECT,UNION operation in Relational algebra.
Set-3 (22WJ8A6632-22WJ8A6648)
1)Discuss about the operators Joins, Division ,Set difference.( L2,CO2)
2)a)Explain Table Assertions(Check Constraints) in SQL
b) Define Dynamic SQL with Example.( L2,CO2)
3)Refer the relation schemas given below and answer the questions asked after schema
description. .( L2,CO2)
Suppliers (S.No., Sname, City)
Parts( P.No., Pname, Colour, City)
Projects (ProjectNo., ProjectName, City)
Sup-Par-Proj(S.No., P.No., ProjectNo., Quantity)
4) Identify the Entity Integrity constraints and keys in the relations. .( L2,CO2)
Set-4 (22WJ8A6648-22WJ8A6667)
1)Distinguish between Super Key,Candidate key for a Relation with example.( L2,CO2)
2)a)Write about Views and Perform update, alter and drop a View
b) Discuss the use of rename operation with example.( L2,CO2)
3)Discuss about Tuple Relational and Domain Relational calculus in detail. .( L2,CO2)
4)Discuss about Integrity Constraints over relations. .( L2,CO2)
Faculty Incharge HOD