Category: SQL & Databases

50 questions in SQL & Databases.

What is query optimization in SQL

· SQL & Databases

Improve SQL query performance using execution plans, indexing strategies, and query rewriting techniques.

How to use self joins

· SQL & Databases

Query hierarchical and relational data within a single table using self joins in SQL.

What are views in SQL

· SQL & Databases

Simplify complex queries and encapsulate logic using SQL views that present virtual tables.

How to use CASE expressions in SQL

· SQL & Databases

Add conditional logic to SQL queries using CASE expressions for computed columns and conditional aggregation.

How to use transactions in SQL

· SQL & Databases

Ensure data integrity by grouping multiple SQL operations into atomic transactions with commit and rollback.

What are window functions in SQL

· SQL & Databases

Perform advanced analytics across related rows without collapsing groups using SQL window functions.

How to write subqueries in SQL

· SQL & Databases

Nest queries inside SELECT, FROM, and WHERE clauses to perform multi-step data retrieval with subqueries.