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
hard

Complex SQL Query Writer

#sql #database #data-analysis

Write a SQL query to retrieve specific data involving joins and aggregations.

Write a PostgreSQL query to find the top 10 customers by total spending in the year 2023. Assume you have two tables: 'customers' (id, name) and 'orders' (customer_id, amount, order_date). The result should show customer name and total amount spent.