🏠 Strona Główna
Benchmarki
📊 Wszystkie benchmarki 🦖 Dinozaur v1 🦖 Dinozaur v2 ✅ Aplikacje To-Do List 🎨 Kreatywne wolne strony 🎯 FSACB - Ostateczny pokaz 🌍 Benchmark tłumaczeń
Modele
🏆 Top 10 modeli 🆓 Darmowe modele 📋 Wszystkie modele ⚙️ Kilo Code
Zasoby
💬 Biblioteka promptów 📖 Słownik AI 🔗 Przydatne linki
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.