🏠 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
intermediate

Generate SQL Aggregation Query

#sql #coding #data

Write a SQL query to calculate total sales per region.

Write a SQL query for a table named 'sales' with columns 'id', 'amount', 'region', and 'date'. The query should return the total sales amount for each region where the date is in the current year. Order the results by the total amount in descending order.