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

bookChallenge: Detect Spending Spikes

Tehtävä

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.

Ratkaisu

Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 7
single

single

Kysy tekoälyä

expand

Kysy tekoälyä

ChatGPT

Kysy mitä tahansa tai kokeile jotakin ehdotetuista kysymyksistä aloittaaksesi keskustelumme

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

Pyyhkäise näyttääksesi valikon

Tehtävä

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.

Ratkaisu

Switch to desktopVaihda työpöytään todellista harjoitusta vartenJatka siitä, missä olet käyttämällä jotakin alla olevista vaihtoehdoista
Oliko kaikki selvää?

Miten voimme parantaa sitä?

Kiitos palautteestasi!

Osio 3. Luku 7
single

single

some-alt