Unit3 - Subjective Questions

INT306 • Practice Questions with Detailed Answers

1

Explain the fundamental operations of Relational Algebra with their notations.

2

Differentiate between WHERE and HAVING clauses in SQL with an example.

3

Describe the different types of SQL Joins. Explain how an Outer Join differs from an Inner Join.

4

What are Window Functions in SQL? How do RANK() and DENSE_RANK() differ?

5

Explain the structure of a B+ Tree and discuss its advantages over a B-Tree for database indexing.

6

Define Views in SQL. What are the advantages of using views?

7

Explain the concept of Correlated Subqueries with an example.

8

Discuss Extendible Hashing (Dynamic Hashing). How does it handle bucket overflow?

9

Explain the Set Operators in SQL: UNION, INTERSECT, and EXCEPT. What are the requirements for their usage?

10

Derive the Division Operator () in Relational Algebra using fundamental operators. Provide an example scenario.

11

What is Query Optimization? Explain the difference between Heuristic and Cost-based optimization.

12

Compare Clustered and Non-Clustered (Secondary) Indexes.

13

Explain the Aggregate Functions available in SQL and how NULL values are handled by them.

14

Describe the Hash Join algorithm. When is it preferred over Nested Loop Join?

15

Explain the difference between Static Hashing and Dynamic Hashing.

16

What is a Materialized View? How does it differ from a standard View in terms of maintenance and performance?

17

List and explain the heuristic rules used for Query Optimization in Relational Algebra.

18

Write the SQL syntax and explain the usage of GROUP BY with the HAVING clause using an example.

19

What is the Natural Join? How is it expressed in Relational Algebra and SQL?

20

Explain the concept of Selectivity in the context of Query Optimization and Indexing.