🏠 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
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.