🏠 Home
Benchmark Hub
📊 All Benchmarks 🦖 Dinosaur v1 🦖 Dinosaur v2 ✅ To-Do List Applications 🎨 Creative Free Pages 🎯 FSACB - Ultimate Showcase 🌍 Translation Benchmark
Models
🏆 Top 10 Models 🆓 Free Models 📋 All Models ⚙️ Kilo Code
Resources
💬 Prompts Library 📖 AI Glossary 🔗 Useful Links
medium

SQL Sales Report Query

#sql #database #query

Write an SQL query to calculate total sales grouped by category.

Write an SQL query for a table named 'sales' with columns 'id', 'product_category', and 'amount'. The query should return the total sales amount for each product category, ordered by the total amount in descending order.