Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Aprenda Challenge: Classes Without Teachers | Handling NULLs, Performance, and Real-World Join Scenarios
SQL Joins in Depth

bookChallenge: Classes Without Teachers

Tarefa

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 classes table.
  • Include the teacher's name for each class using a join with the teachers table.
  • For classes without an assigned teacher, display 'Unassigned' as the teacher name.

Solução

Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 7
single

single

Pergunte à IA

expand

Pergunte à IA

ChatGPT

Pergunte o que quiser ou experimente uma das perguntas sugeridas para iniciar nosso bate-papo

close

bookChallenge: Classes Without Teachers

Deslize para mostrar o menu

Tarefa

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 classes table.
  • Include the teacher's name for each class using a join with the teachers table.
  • For classes without an assigned teacher, display 'Unassigned' as the teacher name.

Solução

Switch to desktopMude para o desktop para praticar no mundo realContinue de onde você está usando uma das opções abaixo
Tudo estava claro?

Como podemos melhorá-lo?

Obrigado pelo seu feedback!

Seção 3. Capítulo 7
single

single

some-alt