Challenge: Summarize Transaction Status
Tarea
Swipe to start coding
Write a query to count the number of transactions for each status in the transactions table using the CASE statement.
- Count the number of transactions where
statusis'completed'and return this ascompleted_count. - Count the number of transactions where
statusis'pending'and return this aspending_count. - Count the number of transactions where
statusis'failed'and return this asfailed_count.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 4. Capítulo 6
single
Pregunte a AI
Pregunte a AI
Pregunte lo que quiera o pruebe una de las preguntas sugeridas para comenzar nuestra charla
Genial!
Completion tasa mejorada a 2.86
Challenge: Summarize Transaction Status
Desliza para mostrar el menú
Tarea
Swipe to start coding
Write a query to count the number of transactions for each status in the transactions table using the CASE statement.
- Count the number of transactions where
statusis'completed'and return this ascompleted_count. - Count the number of transactions where
statusis'pending'and return this aspending_count. - Count the number of transactions where
statusis'failed'and return this asfailed_count.
Solución
¿Todo estuvo claro?
¡Gracias por tus comentarios!
Sección 4. Capítulo 6
single