Unit 5: SQL Server For Backend Development - Subjective Questions

INT402 — Modern Web Programming Tools And Techniques • Practice Questions with Detailed Answers

20 questions

1

Define a database. Explain the major characteristics and advantages of using a database management system.

2

What is Microsoft SQL Server? Describe its important features and its role in backend web development.

3

Explain different types of databases. Distinguish relational databases from non-relational databases.

4

Classify SQL commands into DDL, DML, DQL, DCL, and TCL. Give suitable examples of each category.

5

Describe the structure of a SQL Server table. Write SQL statements to create and alter a table named Employee.

6

Explain commonly used SQL Server data types. Why is selecting an appropriate data type important?

7

Explain the INSERT, UPDATE, and DELETE data manipulation commands with syntax and examples.

8

Differentiate among the SQL Server DELETE, TRUNCATE, and DROP commands.

9

What are constraints in SQL Server? Explain the major types of constraints with examples.

10

Distinguish between primary key, unique key, and foreign key constraints in SQL Server.

11

Explain the purpose and logical use of the SELECT, FROM, WHERE, GROUP BY, HAVING, and ORDER BY clauses.

12

Describe SQL operators used in SQL Server, including arithmetic, comparison, logical, and special operators.

13

Explain pattern matching and NULL handling using LIKE, wildcard characters, IS NULL, and IS NOT NULL.

14

What is a SQL join? Explain INNER JOIN, LEFT JOIN, RIGHT JOIN, and FULL OUTER JOIN with their result behavior.

15

Explain CROSS JOIN and self join in SQL Server. Give an appropriate example of each.

16

Define a SQL Server view. Explain its advantages, limitations, and basic syntax.

17

Discuss the major types of views in SQL Server, including simple, complex, indexed, partitioned, and system views.

18

How is a user-defined view created, altered, used, and dropped in SQL Server? Illustrate with an example.

19

What is a stored procedure in SQL Server? Explain its advantages, components, and execution process.

20

Create and explain a user-defined stored procedure that inserts an employee, validates the salary, uses a transaction, and handles errors.