Challenge: Summarize Transaction Status
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 6
single
Chieda ad AI
Chieda ad AI
Chieda pure quello che desidera o provi una delle domande suggerite per iniziare la nostra conversazione
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Fantastico!
Completion tasso migliorato a 2.86
Challenge: Summarize Transaction Status
Scorri per mostrare il menu
Compito
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.
Soluzione
Tutto è chiaro?
Grazie per i tuoi commenti!
Sezione 4. Capitolo 6
single