🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
intermediate

Generate SQL Query

#sql #database #query

Write a SQL query based on a specific data requirement.

Write a SQL query for a PostgreSQL database that retrieves the top 5 customers by total spend in the last month. Assume tables named 'customers' and 'orders' linked by 'customer_id'. Include joins and ordering.