Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: High-Value Transaction Count | CASE WHEN for Aggregates and Reporting
Practice
Projects
Quizzes & Challenges
Questionários
Challenges
/
Mastering CASE WHEN in SQL

bookChallenge: High-Value Transaction Count

Tarefa

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.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 3
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: High-Value Transaction Count

Deslize para mostrar o menu

Tarefa

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.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 4. Capítulo 3
single

single

some-alt