← All questions
Coding
SQL Related
Asked atBBarclays
Infosys
1Give yourself 5 minutes
2Answer out loud, not in your head
3Then compare with the answer below
0
Stuck? Show a way to structure it+
- 01Ask for table schemas, required output, and database dialect.
- 02Choose joins based on whether unmatched rows must remain.
- 03Use GROUP BY and HAVING correctly for aggregation filters.
- 04Discuss indexes, parameterization, and query-plan inspection.
Reference answer
Then expect these follow-ups
How does an index change a join plan?
Tests: databases
When should you use HAVING?
Tests: aggregation
Free to read · better with Enzo
Practice this out loud with Enzo
Enzo runs it as a mock interview, pushes back with follow-ups, and grades you on the rubric.
Next question