Skip to main content

SQL Query Grader

Get instant feedback with letter grades (A–F) and optimization recommendations

πŸ’‘
New here? Paste your SQL below and click Grade my query for letter grades, performance insights, and ML-powered recommendations.
πŸ“‹How are queries graded?

🎯 Performance (40%)

  • Index usage
  • JOIN efficiency
  • WHERE optimization
  • Execution patterns

⚑ Efficiency (30%)

  • SELECT specificity
  • Subquery optimization
  • Aggregation efficiency
  • Data retrieval

✨ Best Practices (30%)

  • Readability
  • Security
  • DB-specific tuning
  • Scalability
A: 90–100 (Excellent) B: 80–89 (Good) C: 70–79 (Average) D: 60–69 (Needs work) F: <60 (Poor)

Enter your SQL query for analysis and grading

✨ Syntax highlightingπŸ” Auto-completeπŸ“ Code folding🎯 Bracket matching

Optional: Specify your database type for more targeted recommendations

Optional: Database version for version-specific recommendations

Optional: Additional context about how this query is used

Keyboard shortcuts

Speed up query analysis with these keys.

KeyAction
Cmd/Ctrl + EnterGrade query
Cmd/Ctrl + SpaceAutocomplete
Cmd/Ctrl + /Toggle comment
F11Toggle fullscreen editor
Tab / Shift+TabIndent / unindent
EscExit fullscreen / close this dialog
?Open this shortcuts dialog

Example queries

Click any example to load it and see how the analyzer grades different patterns.

🟒 Well-optimized (A–B)

🟑 Moderate issues (C–D)

πŸ”΄ Serious problems (D–F)