Challenge: High-Value Transaction Count
Task
Swipe to start coding
Write a query that, for each customer, counts the number of transactions where the amount is greater than or equal to 1000.
- Use the
transactionstable. - For each
customer_id, count the number of transactions withamountgreater than or equal to 1000. - The result must show one row per
customer_idwith the count of such transactions ashigh_value_transaction_count.
Solution
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 3
single
Ask AI
Ask AI
Ask anything or try one of the suggested questions to begin our chat
Awesome!
Completion rate improved to 4.17
Challenge: High-Value Transaction Count
Swipe to show menu
Task
Swipe to start coding
Write a query that, for each customer, counts the number of transactions where the amount is greater than or equal to 1000.
- Use the
transactionstable. - For each
customer_id, count the number of transactions withamountgreater than or equal to 1000. - The result must show one row per
customer_idwith the count of such transactions ashigh_value_transaction_count.
Solution
Everything was clear?
Thanks for your feedback!
Section 4. Chapter 3
single