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

QB2 DBMS

The document is a question bank for DBMS BCS403 covering topics from informal design guidelines for relation schemas to advanced SQL concepts, including normalization, functional dependencies, SQL statements, nested queries, and transaction management. It includes specific questions about normalization of relations, SQL schema changes, constraints, triggers, views, and transaction properties. The document serves as a comprehensive guide for students preparing for exams in database management systems.

Uploaded by

Jasmitha S
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)
4 views2 pages

QB2 DBMS

The document is a question bank for DBMS BCS403 covering topics from informal design guidelines for relation schemas to advanced SQL concepts, including normalization, functional dependencies, SQL statements, nested queries, and transaction management. It includes specific questions about normalization of relations, SQL schema changes, constraints, triggers, views, and transaction properties. The document serves as a comprehensive guide for students preparing for exams in database management systems.

Uploaded by

Jasmitha S
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/ 2

DBMS BCS403 Question Bank Module3

1. Explain Informal design guidelines for relation schema with examples.


2. What are Functional Dependencies? And explain the following Normal forms with
relation example for each. I) 2NF ii) 3NF iii) BCNF
3. Consider the following relation:
CAR_SALE(Car#, DateSold, Salesman#, Commission%, DiscountAmount)
Assume that a car may be sold by multiple salesmen, and hence
{Car#, Salesman#} is the primary key.
Additional dependencies are:
Car#,--->datesold
Car#-Discountamt
Datesold-Discount amt
Salesman#-comission%
Based on the given primary key, is the relation in 1NF, 2NF, 3NF?
Why or why not?
How would you successively normalize it completely?

4. Let R = {Ssn, Ename, Pnumber, Pname, Plocation, Hours} and 0 = {RI, R2, R3}
where
RI = EMP = {Ssn, Ename}
R2 = PRO] = {Pnumber, Pname, Plocation}
R3 = WORKS-ON = {Ssn, Pnumber, Hours}
The following functional dependencies hold on relation R.
F = {Ssn ->Ename; Pnumber -> {Pname, Plocation};
{Ssn, Pnumber} -> Hours}
Prove that the above decomposition of relation R has the loss less join property

Module4 Advanced SQL


5. Explain different domain types in SQL with example for each.
6. Explain the following with examples for each.
i) SQL Schema change statements
ii) INSERT, DELETE, and UPDATE statements in SQL
7. Explain Nested queries. And Write a Nested query to retrieve the name of each employee
who has a dependent with the same first name and is the same sex as the employee.
8. Explain the following with examples for each.
i) Correlated Nested Queries
ii) EXISTS and UNIQUE Functions in SQL
9. Write nested query for the following:
i) To List the names of managers who have at least one dependent.
ii) For each project on which more than two employees work, retrieve the
project number, the project name, and the number of employees who work on
the project.
10. Write a note on the following with examples:
i) Joined Tables in SQL
ii) The GROUP BY and HAVING Clauses
11. Explain the concept of Constraints as Assertions in SQL with examples.
12. Explain Triggers in SQL with examples.
13. What is VIEW? And explain the concept of Views in SQL with examples
14. Consider the following schema for a COMPANY database:
EMPLOYEE (Fname, Lname, Ssn, Address, Super-ssn, Salary, Dno)
DEPARTMENT (Dname, Dnumber, Mgr-ssn, Mgr-start-date)
DEPT-LOCATIONS (Dnumber, Dlocation)
PROJECT (Pname, Pnumber, Plocation, Dnum)
WORKS-ON (Ess!!, Pno, Hours)
DEPENDENT (Essn, Dependent-name, Sex, Bdate, Relationship)
write the SQL query for the following:
i) List the names of managers who have at least one dependent.
ii) Retrieve the list of employees and the projects they are working on, ordered by
department and, within each department, ordered alphabetically by last name, first
name.
iii) For each project, retrieve the project number, the project name, and the number
of
employees who work on that project.
iv) For each project on which more than two employees work, retrieve the project
number, the project name, and the number of employees who work on the project.
v) For each project, retrieve the project number, the project name, and the number
of
employees from department 4 who work on the project.
15.Explain stored procedure language in SQL with an example.

Module 5: Transaction management


1.Demonstrate transaction states & additional operations
2.Demonstrate the System Log in database transaction.
3. Discuss the ACID properties of database transaction.
4. Explain the Two phase locking protocol used for concurrency control
5. Define Schedule? Illustrate with an example.
6. Why Concurrency control is needed? Demonstrate with an example.
7. Demonstrate the Two phase locking protocol used for concurrency
control.
8. Demonstrate the Concurrency control based on Timestamp ordering.

You might also like