🏠 Accueil
Benchmarks
📊 Tous les Benchmarks 🦖 Dinosaure v1 🦖 Dinosaure v2 ✅ To-Do List Apps 🎨 Pages Libres 🎯 FSACB - Showcase 🌍 Traduction
Modèles
🏆 Top 10 Modèles 🆓 Modèles Gratuits 📋 Tous les Modèles ⚙️ Modes Kilo Code
Ressources
💬 Prompts IA 📖 Glossaire IA 🔗 Liens Utiles
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.