Секція 1. Розділ 29
single
Challenge: Calculate Average Bonus
Свайпніть щоб показати меню
Завдання
Swipe to start coding
Write a query to calculate the average bonus for all employees in the employees table, treating any NULL bonus values as zero.
- Use the
COALESCEfunction to replace anyNULLvalue in thebonuscolumn with zero. - Calculate the average of these values.
- The result should be a single column named
avg_bonus.
Рішення
Все було зрозуміло?
Дякуємо за ваш відгук!
Секція 1. Розділ 29
single
Запитати АІ
Запитати АІ
Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат