0% found this document useful (0 votes)
101 views

DBMS Module3 QuestionBank

bcs403 module3

Uploaded by

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

DBMS Module3 QuestionBank

bcs403 module3

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/ 4

Database Management System (BCS403) Question Bank

MODULE-3
NORMALIZATION :Database Design Theory, SQL
Q. No. Question COs CL Marks

1 Explain basic data types available for attributes in SQL?(Dec 2023/Jan CO3 L2 7
2024)
Demonstrate the following constraints in SQL with example. CO3 L2 10
2 i)NOT NULL ii)Primary key iii)Foreign Key iv)Default v)Check

Dec 2023/Jan 2024)


3 What is Functional Dependency(FD)? Explain informal design guidelines CO3 L2 7
for database. (Jan 2022,Feb 2021,July 2019)
4 What is the need for normalization? Explain the 1NF, 2NF, 3NF, BCNF CO3 L2 7
with examples. (Feb 2021,Dec 2019,July 2018) (Dec 2023/Jan 2024)
CO3 L2 7
5

)For each department retrieve the department number,number of employee


in the department and their average salary.
ii) For each project more than 2 employee work,retrieve project number,the
project name and number of employees who work on the project.
iii) For each project ,retrieve project number the project name and number
of employees from department no 5 who work on the project.
iv) For each department that has more than 5 employees retrive department
number and number of its employees who are making more than $40000
salary.
v) Retrive the names of employees who have two or more dependents

6 CO3 L2 8
Define join dependency and explain 5NF. (Jan 2022,Feb 2021,July 2018)

7 Define multivalued dependency. Explain fourth normal form with an CO3 L2 7


example. (Jan 2022,Feb 2021,Jan 2019)
8 Discuss insertion, deletion, and modification anomalies. (Jan 2022,Feb CO3 L2 7
2021,July 2019)
9 Explain the datatypes available for attribute specification in SQL.(July CO3 L2 7
2018)

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


Database Management System (BCS403) Question Bank

Consider the schema for Company Database: CO3 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
10 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 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)
Consider the following RESORT database: CO3 L3 10M
RESORT (resortno, resortname, resorttype, resortaddr, resortcity,
numsuite) SUITE (suiteno, resortno, suiteprice)
RESERVATION (reservationno, resortno, visitorno, checkin, checkout,
totalvisitor, suiteno)
11 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)
Consider the following student and course database: CO3 L3 10M
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)
12 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)
Consider the following relation schema: CO3 L3 10M
13 Works(Pname,Cname,salary)
Lives(Pname,Street,City)
located_in (Cname, city)

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


Database Management System (BCS403) Question Bank

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


Database Management System (BCS403) Question Bank

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)
In SQL which command is used for table creation? Explain how constraints CO3 L2 6M
14 are specified in SQL during table creation with suitable example. (Feb
2022,Jan 2020)
Explain INSERT, DELETE and UPDATE Statements in SQL. (Feb 2022, CO2 L2 7M
16
July 2019)
Explain the following with example: (i) SELECT (ii) ALTER (iii) CO2 L2 6M
17 UPDATE
(Model QP)
Explain with examples in SQL: (i) DELETE (ii) DROP (iii) INSERT (iv) CO2 L2 6M
18
CREATE (Jan 2019)

Course Faculty
(Lakshmi Sravani G)

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

You might also like