SELECT, WHERE, ORDER BY
DISTINCT, LIMIT, BETWEEN
NULL handling
INNER JOIN vs LEFT JOIN
RIGHT JOIN & FULL OUTER JOIN
Self Joins and Cross Joins
COUNT, SUM, AVG, MIN, MAX
GROUP BY & HAVING
Use cases in reporting/test validations
Scalar vs Correlated Subqueries
IN, EXISTS, and NOT EXISTS usage
Real-life test scenarios
UNION vs UNION ALL
INTERSECT & EXCEPT (if supported)
Common use in data comparison
INSERT, UPDATE, DELETE
Bulk operations
Transactions & rollbacks in test setup
Writing queries for test assertions
Comparing expected vs actual data
Working with audit/history tables
When indexes matter for tests
Avoiding slow queries in CI pipelines
Explain plans & query optimization basics
Query for nth highest salary
Find duplicates in a table
Identify orphan records via JOINs
JDBC (Java), PyODBC (Python)
Using SQL in Postman/SOAP UI test scripts
Framework integration (Selenium, TestNG, Pytest)