VIP 👤
🏠 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 🔌 API & Routers
intermediate

Build SQL Query

#sql #database #data

Construct a complex SQL query based on a description of requirements.

Act as a SQL expert. Write a query to select the top 5 customers by total purchase amount in the last month from the 'orders' and 'customers' tables. Assume the tables are linked by 'customer_id'.