Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: Detect Spending Spikes | Advanced Window Function Applications
Window Functions in SQL

bookChallenge: Detect Spending Spikes

Tâche

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.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 7
single

single

Demandez à l'IA

expand

Demandez à l'IA

ChatGPT

Posez n'importe quelle question ou essayez l'une des questions suggérées pour commencer notre discussion

Suggested prompts:

Can you explain that in simpler terms?

What are some examples related to this topic?

How does this information apply to real-world situations?

close

bookChallenge: Detect Spending Spikes

Glissez pour afficher le menu

Tâche

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.

Solution

Switch to desktopPassez à un bureau pour une pratique réelleContinuez d'où vous êtes en utilisant l'une des options ci-dessous
Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 3. Chapitre 7
single

single

some-alt