0% found this document useful (0 votes)
39 views3 pages

BCS403 DBMS Module2 QuestionBank 2022-23

This document is a question bank for a Database Management System course, specifically focusing on the relational model and relational algebra. It includes various questions related to concepts such as relations, integrity constraints, SQL data types, and practical SQL queries for different database schemas. The questions are categorized by complexity levels and mark allocations, covering both theoretical and practical aspects of database management.

Uploaded by

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

BCS403 DBMS Module2 QuestionBank 2022-23

This document is a question bank for a Database Management System course, specifically focusing on the relational model and relational algebra. It includes various questions related to concepts such as relations, integrity constraints, SQL data types, and practical SQL queries for different database schemas. The questions are categorized by complexity levels and mark allocations, covering both theoretical and practical aspects of database management.

Uploaded by

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

Database Management System (18CS53) Question Bank

MODULE-2
Relational Model, Relational Algebra Mapping Conceptual Design into a
Logical Design

CO
Q. No. Question CL Marks
s
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 Explain the datatypes available for attribute specification in SQL. CO2 L2 6M
(July 2018)
4 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)
5 Briefly explain violations in Entity integrity constraint, Key and CO2 L2 10M
referential integrity constraints, with example. (Feb 2022, July 2018)
6 Explain the ER to relational mapping algorithm with suitable example CO2 L2 10M
for each step. (Feb 2022, Feb 2021)
7 Define the following terms with example. i) Primary Key ii) Super Key CO2 L1 8M
iii) Foreign Key iv) Candidate Key (Feb 2022,Jan 2020)
8 Consider the schema for Company Database: CO2 L3 8M
EMPLOYEE(Fname, Minit, Lname, SSN, Bdate, Address, Sex, Salary,
SuperSSN, DNo)
DEPARTMENT(DNo, DName, MgrSSN, MgrStartDate)
DLOCATION(DNo,DLoc)
PROJECT(PNo, PName, PLocation, DNo)
WORKS_ON(ESSN, PNo, Hours)
DEPENDENT(ESSN,Dependent_name,Sex,Bdate,Relationship)
Solve the following queries using SQL:
i) Retrieves all the attributes of an EMPLOYEE and the attributes of the
DEPARTMENT in which he or she works for every employee of the
‘Research’ department.
ii) For every project located in ‘Stafford’, list the project number, the
controlling department number, and the department manager’s last

Department of CSE, Vemana IT Page 1 of 3


Database Management System (18CS53) Question Bank

name, address and birth date.


iii) For each employee, retrieve the employee’s first and last name and
the first and last name of his or her immediate supervisor.
iv) Make a list of all project numbers for projects that involve an
employee whose last name is ‘Smith’, either as a worker or as a
manager of the department that controls the project.
v) Retrieve all employees in department D2 whose salary is between
500000 and 700000.
(Jan 2018)
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 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)
Manager(Pname,Mgrname)
Solve the following queries using SQL:
i) Find the names of all persons who live in the city Bangalore.
ii) Retrieve the names of all person of "Infosys" whose salary is
between Rs .50000
iii) Find the names of all persons who lives and work in the same city.
iv)List the names of the people who work for “Tech M” along with the
cities they live in.
v)Find the average salary of “Infosys” persons.
(Model QP 2019-20)
11 Consider the following RESORT database: CO2 L3 5M
RESORT (resortno, resortname, resorttype, resortaddr, resortcity,
numsuite)
SUITE (suiteno, resortno, suiteprice)

Department of CSE, Vemana IT Page 2 of 3


Database Management System (18CS53) Question Bank

RESERVATION (reservationno, resortno, visitorno, checkin, checkout,


totalvisitor, suiteno)
VISITOR (visitorno, firstname, lastname, visitoraddr)
Solve the following queries using SQL:
i)Write the SQL to list full details of all the resorts on Los Angeles.
ii)Write the SQL to list full details of all the resorts having number of
suites more than 30.
iii)Write the SQL to list visitors in ascending order by first name.
(July 2018)
12 In SQL which command is used for table creation? Explain how CO2 L2 6M
constraints are specified in SQL during table creation with suitable
example. (Feb 2022,Jan 2020)
13 Explain INSERT, DELETE and UPDATE Statements in SQL. (Feb 2022, CO2 L2 7M
July 2019)
14 Explain the following with example: (i) SELECT (ii) ALTER (iii) UPDATE CO2 L2 6M
(Model QP)

15 Explain with examples in SQL: (i) DELETE (ii) DROP (iii) INSERT (iv) CO2 L2 6M
CREATE (Jan 2019)

Course Faculty

Department of CSE, Vemana IT Page 3 of 3

You might also like