Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Detect Spending Spikes | Advanced Window Function Applications
Window Functions in SQL

bookChallenge: Detect Spending Spikes

Завдання

Swipe to start coding

Write a query to flag transactions where the amount is at least double the customer's average transaction amount over the previous 12 months.

  • For each record in the performance table, treat the score as the transaction amount.
  • Calculate the average transaction amount for each employee over the previous 12 months, not including the current transaction.
  • Flag the transaction if its amount is at least double this average.

Рішення

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

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

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

Секція 3. Розділ 7
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

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

close

bookChallenge: Detect Spending Spikes

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

Завдання

Swipe to start coding

Write a query to flag transactions where the amount is at least double the customer's average transaction amount over the previous 12 months.

  • For each record in the performance table, treat the score as the transaction amount.
  • Calculate the average transaction amount for each employee over the previous 12 months, not including the current transaction.
  • Flag the transaction if its amount is at least double this average.

Рішення

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

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

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

Секція 3. Розділ 7
single

single

some-alt