セクション 3. 章 2
single
Challenge: Student-Class Report with Defaults
メニューを表示するにはスワイプしてください
タスク
スワイプしてコーディングを開始
Write a query to generate a report listing each student's name and their class name. If a student does not have a class assigned, display 'Unassigned' instead of a NULL class name.
- Use a LEFT JOIN to combine the
studentsandclassestables based on theclass_id. - Select the student's name from the
studentstable. - Select the class name from the
classestable, replacing any NULL values with 'Unassigned' using the COALESCE function.
解答
すべて明確でしたか?
フィードバックありがとうございます!
セクション 3. 章 2
single
AIに質問する
AIに質問する
何でも質問するか、提案された質問の1つを試してチャットを始めてください