Секція 1. Розділ 24
single
Challenge: Summarize Transaction Status
Свайпніть щоб показати меню
Завдання
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.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 24
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат