🏠 ホーム
ベンチマーク
📊 すべてのベンチマーク 🦖 恐竜 v1 🦖 恐竜 v2 ✅ To-Doリストアプリ 🎨 クリエイティブフリーページ 🎯 FSACB - アルティメットショーケース 🌍 翻訳ベンチマーク
モデル
🏆 トップ10モデル 🆓 無料モデル 📋 すべてのモデル ⚙️ 🛠️ Kilo Code モード
リソース
💬 💬 プロンプトライブラリ 📖 📖 AI用語集 🔗 🔗 有用なリンク
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.