Challenge: Detect Spending Spikes
Taak
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
performancetable, treat thescoreas 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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 7
single
Vraag AI
Vraag AI
Vraag wat u wilt of probeer een van de voorgestelde vragen om onze chat te starten.
Geweldig!
Completion tarief verbeterd naar 4.55
Challenge: Detect Spending Spikes
Veeg om het menu te tonen
Taak
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
performancetable, treat thescoreas 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.
Oplossing
Was alles duidelijk?
Bedankt voor je feedback!
Sectie 3. Hoofdstuk 7
single