🏠 Ana Sayfa
Benchmarklar
📊 Tüm Benchmarklar 🦖 Dinozor v1 🦖 Dinozor v2 ✅ To-Do List Uygulamaları 🎨 Yaratıcı Serbest Sayfalar 🎯 FSACB - Nihai Gösteri 🌍 Çeviri Benchmarkı
Modeller
🏆 En İyi 10 Model 🆓 Ücretsiz Modeller 📋 Tüm Modeller ⚙️ Kilo Code
Kaynaklar
💬 Prompt Kütüphanesi 📖 YZ Sözlüğü 🔗 Faydalı Bağlantılar
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.