セクション 1. 章 30
single
Challenge: Prevent Division by Zero
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Write a query to calculate the total bonus, the number of employees, and the average bonus per employee. Use NULLIF to prevent division by zero when calculating the average bonus per employee.
- Calculate the sum of the
bonuscolumn and assign it an alias. - Count the number of employees and assign it an alias.
- Divide the total bonus by the number of employees using
NULLIFto avoid division by zero, and assign the result an alias.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 1. 章 30
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください