Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Custom KPIs with CASE WHEN | CASE WHEN for Business Logic
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL for Business Intelligence Analysts

bookChallenge: Custom KPIs with CASE WHEN

Завдання

Swipe to start coding

Write SQL queries to create custom business metrics using CASE WHEN inside aggregation functions.

  • Return the count of orders that have a status of 'Delivered' as completed_orders.
  • Return the sum of total_amount for all orders where total_amount is greater than 500 as high_value_sales.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 6
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

close

bookChallenge: Custom KPIs with CASE WHEN

Свайпніть щоб показати меню

Завдання

Swipe to start coding

Write SQL queries to create custom business metrics using CASE WHEN inside aggregation functions.

  • Return the count of orders that have a status of 'Delivered' as completed_orders.
  • Return the sum of total_amount for all orders where total_amount is greater than 500 as high_value_sales.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 2. Розділ 6
single

single

some-alt