Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Apprendre Challenge: High-Value Transaction Count | CASE WHEN for Aggregates and Reporting
Mastering CASE WHEN in SQL

bookChallenge: High-Value Transaction Count

Tâche

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 transactions table.
  • For each customer_id, count the number of transactions with amount greater than or equal to 1000.
  • The result must show one row per customer_id with the count of such transactions as high_value_transaction_count.

Solution

Tout était clair ?

Comment pouvons-nous l'améliorer ?

Merci pour vos commentaires !

Section 4. Chapitre 3
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

close

bookChallenge: High-Value Transaction Count

Glissez pour afficher le menu

Tâche

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 transactions table.
  • For each customer_id, count the number of transactions with amount greater than or equal to 1000.
  • The result must show one row per customer_id with the count of such transactions as high_value_transaction_count.

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 4. Chapitre 3
single

single

some-alt