Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lernen Challenge: Detect Spending Spikes | Advanced Window Function Applications
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
Window Functions in SQL

bookChallenge: Detect Spending Spikes

Aufgabe

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.

Lösung

War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 7
single

single

Fragen Sie AI

expand

Fragen Sie AI

ChatGPT

Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen

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

Swipe um das Menü anzuzeigen

Aufgabe

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.

Lösung

Switch to desktopWechseln Sie zum Desktop, um in der realen Welt zu übenFahren Sie dort fort, wo Sie sind, indem Sie eine der folgenden Optionen verwenden
War alles klar?

Wie können wir es verbessern?

Danke für Ihr Feedback!

Abschnitt 3. Kapitel 7
single

single

some-alt