🏠 Beranda
Benchmark
📊 Semua Benchmark 🦖 Dinosaurus v1 🦖 Dinosaurus v2 ✅ Aplikasi To-Do List 🎨 Halaman Bebas Kreatif 🎯 FSACB - Showcase Utama 🌍 Benchmark Terjemahan
Model
🏆 Top 10 Model 🆓 Model Gratis 📋 Semua Model ⚙️ Kilo Code
Sumber Daya
💬 Perpustakaan Prompt 📖 Glosarium AI 🔗 Tautan Berguna
Hard

Write SQL Query for Sales Report

#sql #database #reporting

Construct an SQL query to aggregate sales data by region.

Write an SQL query for a table named 'Sales' with columns (id, product_name, amount, sale_date, region). The query should return the total sales amount and the number of transactions for each region where the sale_date is in the year 2023. Order the results by the total sales amount in descending order.