100% found this document useful (1 vote)
34 views

DBMS Module2 QuestionBank

bcs403 module2

Uploaded by

sravanisathya.p
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
100% found this document useful (1 vote)
34 views

DBMS Module2 QuestionBank

bcs403 module2

Uploaded by

sravanisathya.p
Copyright
© © All Rights Reserved
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 3

Database Management System (BCS403) Question Bank

MODULE-2
Relational Model, Mapping Conceptual Design into a Logical Design
Q. No. Question COs CL Marks
1. Define the following: i) Relation ii) Domain iii) Relation State iv) Arity CO2 L1 6M
(Feb 2022,Jan 2019)
2. Describe the characteristics of relations with suitable example for each. CO2 L2 7M
(Jan 2019)
3. What is meant by Integrity Constraint? Explain the importance of CO2 L2 8M
referential integrity constraint. How referential integrity is implemented
in SQL? (July 2019)
4. Briefly explain violations in Entity integrity constraint, Key and CO2 L2 10M
referential integrity constraints, with example. (Feb 2022, July 2018)
5. Explain the ER to relational mapping algorithm with suitable example CO2 L2 10M
for each step. (Jan2024,Feb 2022, Feb 2021)
6. Define the following terms with example. i) Primary Key ii) Super Key CO2 L1 8M
iii) Foreign Key iv) Candidate Key (June 2023,Feb 2022,Jan 2020)
7. Explain the four relational model constraints.( Jan2024) CO2 L2 6M

8. Explain all types of outer join operations in relation algebra. CO2 L2 6M


Demonstrate the advantages of outer join operations over the inner join
operations.(Jan 2024)
9. Consider the following student and course database: CO2 L3 5M
STUDENT (name, snumber, class, major)
COURSE (cname, cnumber, credit_hrs, dept)
SECTION (sectionid, cnumber, sem, year, instructor)
GRADE_REPORT (snumber, sectionid, grade)
PREREQUISITE (cnumber, prerequisite_number)
Solve the following queries using SQL:
i)Retrieve the names of all senior students majoring in ‘cs’.
ii)Retrieve the names of all courses taught by professor king in 2016 and

Department of AI&ML, Vemana IT Page 1 of 3


Database Management System (BCS403) Question Bank

2017.
iii)For each section taught by professor king, retrieve the course number,
semester, year, number of students who took the section.
(July 2018)
10. Consider the following relation schema: CO2 L3 7M
Works(Pname,Cname,salary)
Lives(Pname,Street,City)
located_in (Cname, city)
Solve the following queries in Relational algebra:
i) List the names of the people who work for the company ‘Wipro’ along
with the cities they live in.
ii)Find the names of the persons who do not work for the company
"Infosys" .
iii) Find the people whose salaries are more than that of all of the
‘oracle’ employees .
iv)Find the persons who works and lives in the same city.
v)Find the names of the companies that are located in every city where
the company Infosys is located.
(July2023)
11. Consider the following schema
Sailors(sid,sname,rating,age)
Boats(bid, bname,color)
Reserves(sid,bid,day)
Write a relational algebra queries for the following.
i. Find the names of sailors who have reserved boat #103
ii. Find the names of sailors who have reserved a red boat.
iii. Find the names of sailors who have reserved a red boat or
green boat
iv. Find the names of sailors who have reserved all boats.

12. Consider Two tables T1 and T2. Evaluate the results of the following
operations:

Department of AI&ML, Vemana IT Page 2 of 3


Database Management System (BCS403) Question Bank

T1: T2:
P Q R

A B C
10 b 6
25 c 3
10 b 5
10 a 5
15 b 8
25 a 6

i) T1 ∞ T1.P = T2.A T2
ii) T1 ∞ T1.Q = T2.BT2
iii) T1 ∞ T1.R = T2.C T2
iv) T1 ∞( T1.P = T2.A AND T1.Q=T2.R) T2
13. Discuss the Division operation of relational algebra. CO2 L2 8M
Find the quotient for the following.
Find i) A/B1 ii) A/B2 iii)A/B3

PNO PNO
A: SNO DNO B1: P2 P2
S1 P1
S1 P2 P4
S1 P3 PNO
S1 P4
S2 P1 P1
S2 P2 P2
S3 P3
S4 P2 P4
S4 P4

Course Faculty

Department of AI&ML, Vemana IT Page 3 of 3

You might also like