🏠 Inicio
Pruebas de rendimiento
📊 Todos los benchmarks 🦖 Dinosaurio v1 🦖 Dinosaurio v2 ✅ Aplicaciones To-Do List 🎨 Páginas libres creativas 🎯 FSACB - Showcase definitivo 🌍 Benchmark de traducción
Modelos
🏆 Top 10 modelos 🆓 Modelos gratuitos 📋 Todos los modelos ⚙️ Kilo Code
Recursos
💬 Biblioteca de prompts 📖 Glosario de IA 🔗 Enlaces útiles
intermediate

High-Value Customer SQL Query

#sql #database #analytics

Generate a SQL query to identify top customers based on spending.

Construct a PostgreSQL query to select the top 10 users with the highest total purchase amount from the 'orders' table. The output should include user_id, user_name, and the sum of their total_orders, sorted by the total amount in descending order.