Challenge: Classes Without Teachers
Uppgift
Swipe to start coding
Write a query to produce a list of all classes along with their assigned teacher names. If a class does not have a teacher assigned, display 'Unassigned' as the teacher name instead.
- Select the class ID and class name from the
classestable. - Include the teacher's name for each class using a join with the
teacherstable. - For classes without an assigned teacher, display 'Unassigned' as the teacher name.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 7
single
Fråga AI
Fråga AI
Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal
Suggested prompts:
Can you explain this in simpler terms?
What are the main benefits or drawbacks?
Can you give me a real-world example?
Fantastiskt!
Completion betyg förbättrat till 4.76
Challenge: Classes Without Teachers
Svep för att visa menyn
Uppgift
Swipe to start coding
Write a query to produce a list of all classes along with their assigned teacher names. If a class does not have a teacher assigned, display 'Unassigned' as the teacher name instead.
- Select the class ID and class name from the
classestable. - Include the teacher's name for each class using a join with the
teacherstable. - For classes without an assigned teacher, display 'Unassigned' as the teacher name.
Lösning
Var allt tydligt?
Tack för dina kommentarer!
Avsnitt 3. Kapitel 7
single