Challenge: Transaction Type Breakdown
Tarefa
Swipe to start coding
Write a query that, for each month, shows the count of transactions of type 'purchase', 'refund', and 'fee' as separate columns.
- For each month in the
transactionstable, count how many transactions havetransaction_typeequal to 'purchase'. - For each month, count how many transactions have
transaction_typeequal to 'refund'. - For each month, count how many transactions have
transaction_typeequal to 'fee'. - Show the results with one row per month, and columns for the month, purchase count, refund count, and fee count.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 5
single
Pergunte à IA
Pergunte à IA
Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo
Incrível!
Completion taxa melhorada para 4.17
Challenge: Transaction Type Breakdown
Deslize para mostrar o menu
Tarefa
Swipe to start coding
Write a query that, for each month, shows the count of transactions of type 'purchase', 'refund', and 'fee' as separate columns.
- For each month in the
transactionstable, count how many transactions havetransaction_typeequal to 'purchase'. - For each month, count how many transactions have
transaction_typeequal to 'refund'. - For each month, count how many transactions have
transaction_typeequal to 'fee'. - Show the results with one row per month, and columns for the month, purchase count, refund count, and fee count.
Solução
Tudo estava claro?
Obrigado pelo seu feedback!
Seção 4. Capítulo 5
single