🏠 Strona Główna
Benchmarki
📊 Wszystkie benchmarki 🦖 Dinozaur v1 🦖 Dinozaur v2 ✅ Aplikacje To-Do List 🎨 Kreatywne wolne strony 🎯 FSACB - Ostateczny pokaz 🌍 Benchmark tłumaczeń
Modele
🏆 Top 10 modeli 🆓 Darmowe modele 📋 Wszystkie modele ⚙️ Kilo Code
Zasoby
💬 Biblioteka promptów 📖 Słownik AI 🔗 Przydatne linki
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.