Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Challenge: Classes Without Teachers | Handling NULLs, Performance, and Real-World Join Scenarios
Practice
Projects
Quizzes & Challenges
Quizzes
Challenges
/
SQL Joins in Depth

bookChallenge: Classes Without Teachers

Завдання

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.

Рішення

Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 7
single

single

Запитати АІ

expand

Запитати АІ

ChatGPT

Запитайте про що завгодно або спробуйте одне із запропонованих запитань, щоб почати наш чат

Suggested prompts:

Can you explain this in simpler terms?

What are the main benefits or drawbacks?

Can you give me a real-world example?

close

bookChallenge: Classes Without Teachers

Свайпніть щоб показати меню

Завдання

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.

Рішення

Switch to desktopПерейдіть на комп'ютер для реальної практикиПродовжуйте з того місця, де ви зупинились, використовуючи один з наведених нижче варіантів
Все було зрозуміло?

Як ми можемо покращити це?

Дякуємо за ваш відгук!

Секція 3. Розділ 7
single

single

some-alt