🏠 Главная
Бенчмарки
📊 Все бенчмарки 🦖 Динозавр v1 🦖 Динозавр v2 ✅ Приложения To-Do List 🎨 Творческие свободные страницы 🎯 FSACB - Ультимативный показ 🌍 Бенчмарк перевода
Модели
🏆 Топ-10 моделей 🆓 Бесплатные модели 📋 Все модели ⚙️ Режимы Kilo Code
Ресурсы
💬 Библиотека промптов 📖 Глоссарий ИИ 🔗 Полезные ссылки
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.