🏠 Home
Benchmark
📊 Tutti i benchmark 🦖 Dinosauro v1 🦖 Dinosauro v2 ✅ App To-Do List 🎨 Pagine libere creative 🎯 FSACB - Ultimate Showcase 🌍 Benchmark traduzione
Modelli
🏆 Top 10 modelli 🆓 Modelli gratuiti 📋 Tutti i modelli ⚙️ Kilo Code
Risorse
💬 Libreria di prompt 📖 Glossario IA 🔗 Link utili
advanced

Generate Complex SQL Query

#sql #database #query-optimization

Create a SQL query with joins and aggregations.

Write a SQL query to retrieve the top 10 customers by total purchase amount in the last month. Assume tables named 'customers' (id, name), 'orders' (id, customer_id, date), and 'order_items' (order_id, amount). Join these tables, group by customer name, and order by the total sum descending.