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

SQL Query with Multiple Joins

#sql #database #querying #coding

Construct a SQL query to retrieve data from three related tables.

Write a SQL query to retrieve the full names of all customers and the total amount they have spent. You have three tables: Customers (customer_id, first_name, last_name), Orders (order_id, customer_id), and Order_Items (order_id, amount). Use appropriate joins and aggregate functions.