Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Top Sales per Region | Introduction to Window Functions
Window Functions in SQL

bookChallenge: Top Sales per Region

Завдання

Swipe to start coding

Write a query to find the highest sale amount and corresponding employee for each region using window functions.

  • Assign a row number to each sale within its region, ordering by the sale amount in descending order.
  • Select the region, employee ID, and sale amount for the row with the highest sale in each region.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 4
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Top Sales per Region

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Write a query to find the highest sale amount and corresponding employee for each region using window functions.

  • Assign a row number to each sale within its region, ordering by the sale amount in descending order.
  • Select the region, employee ID, and sale amount for the row with the highest sale in each region.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 1. Розділ 4
single

single

some-alt