Unit2 - Subjective Questions

INT306 • Practice Questions with Detailed Answers

1

Define Data Definition Language (DDL). List and explain the primary commands used in DDL with syntax.

2

Distinguish between the SQL commands DELETE, TRUNCATE, and DROP.

3

Explain the concept of Data Manipulation Language (DML). Differentiate between Procedural and Non-Procedural DML.

4

Describe the commands used in Transaction Control Language (TCL) with examples.

5

Explain the purpose of Data Control Language (DCL). How are privileges granted and revoked in SQL?

6

Define 'Key' in a DBMS. Explain the hierarchy of keys including Super Key, Candidate Key, and Primary Key using mathematical notation where appropriate.

7

What is a Foreign Key? Explain the concept of Referential Integrity with an example.

8

Compare and contrast Primary Key and Unique Key constraints.

9

Detailed the different categories of Integrity Constraints in SQL.

10

Explain the CHECK and NOT NULL constraints with syntax and usage.

11

What is a Composite Key? When is it used?

12

Discuss the SQL SELECT statement structure and the logical order of execution of its clauses.

13

Explain the SQL Set Operations: UNION, INTERSECT, and EXCEPT (or MINUS) with mathematical set notation.

14

Describe the usage of Aggregate Functions in SQL with examples.

15

Differentiate between the WHERE clause and the HAVING clause in SQL.

16

Explain the concept of SQL Joins. Detail the differences between Inner Join, Left Join, Right Join, and Full Outer Join.

17

What is pattern matching in SQL? Explain the LIKE operator and wildcard characters.

18

How does the ORDER BY clause work? Explain sorting by single and multiple columns.

19

Explain the ALTER TABLE command and provide syntax for adding a column, dropping a column, and modifying a data type.

20

What are Alternate Keys? How do they relate to Candidate Keys?