Challenge: Summarize Transaction Status
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 6
single
Fragen Sie AI
Fragen Sie AI
Fragen Sie alles oder probieren Sie eine der vorgeschlagenen Fragen, um unser Gespräch zu beginnen
Suggested prompts:
Can you explain this in simpler terms?
What are the main points I should remember?
Can you give me an example?
Großartig!
Completion Rate verbessert auf 2.86
Challenge: Summarize Transaction Status
Swipe um das Menü anzuzeigen
Aufgabe
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.
Lösung
War alles klar?
Danke für Ihr Feedback!
Abschnitt 4. Kapitel 6
single