🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
Beginner

Write a SQL Customer Report Query

#sql #database #query

Construct a SQL query to join two tables and generate a report of recent customer purchases.

Write a SQL query to list the top 10 customers who made the highest total purchases in the last month. Join the 'Customers' table (with columns customer_id, customer_name) and the 'Orders' table (with columns order_id, customer_id, order_date, total_amount). Order the results by total_amount in descending order.