Need Assistance?

support@tutorialshub.in

ADVANCED PRACTICE TEST

Advanced SQL: Performance Tuning & Indexing

Test your knowledge on Window Functions, CTE Recursion, B-Tree Index Mechanics, ACID Isolation levels, and Execution Plans.

5 Questions 15 Minutes Instant Scoring All Quizzes
Question 1 of 5
00:00

1. Which Window Function assigns consecutive rank numbers without leaving gaps when values tie?

SELECT name, score, ___________() OVER (ORDER BY score DESC) as rank FROM students;

2. What is the primary benefit of a Composite Index on (status, created_at) when querying?

SELECT * FROM orders WHERE status = "completed" ORDER BY created_at DESC;

3. Which ACID transaction isolation level prevents Dirty Reads, Non-Repeatable Reads, and Phantom Reads?

4. What is a Common Table Expression (CTE) defined with in SQL?

______ regional_sales AS (
SELECT region, SUM(amount) AS total FROM sales GROUP BY region
)
SELECT * FROM regional_sales;

5. What does EXPLAIN ANALYZE do in PostgreSQL and modern MySQL engines?

EXPLAIN ANALYZE SELECT * FROM users WHERE email = "test@example.com";
0% 0 / 0

Quiz Completed!

Here is your detailed performance breakdown.

Retake Quiz Learn SQL

Detailed Question Review