セクション 1. 章 29
single
Challenge: Calculate Average Bonus
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
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
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください