Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Вивчайте Використання FULL JOIN | Об'єднання Таблиць
Розширений Рівень SQL

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

book
Використання FULL JOIN

In this chapter, you'll learn how to use a different type of table join. Unlike the previous chapters where you could use the same JOIN, this time you'll need to apply a specific one.

Завдання

Swipe to start coding

Write a query to retrieve a list of all courses and students, including those courses with no registered students and those students who are not registered for any course.

To accomplish this, you will need to use a specific type of join. Also, retrieve the columns in the exact order as specified:

courses.course_id,
courses.course_name,
courses.description,
enrollments.student_name,
enrollments.enrollment_date

Additionally, sort the result by the course_id column. Good luck!

Brief Instructions

  • Retrieve the necessary columns from the courses table.
  • Use a FULL JOIN to join the enrollments table.
  • The common column for both tables is courses.course_id = enrollments.course_id.
  • Sort the results by courses.course_id.

Рішення

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

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

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

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

single

Запитати АІ

expand

Запитати АІ

ChatGPT

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

close

Awesome!

Completion rate improved to 4

book
Використання FULL JOIN

In this chapter, you'll learn how to use a different type of table join. Unlike the previous chapters where you could use the same JOIN, this time you'll need to apply a specific one.

Завдання

Swipe to start coding

Write a query to retrieve a list of all courses and students, including those courses with no registered students and those students who are not registered for any course.

To accomplish this, you will need to use a specific type of join. Also, retrieve the columns in the exact order as specified:

courses.course_id,
courses.course_name,
courses.description,
enrollments.student_name,
enrollments.enrollment_date

Additionally, sort the result by the course_id column. Good luck!

Brief Instructions

  • Retrieve the necessary columns from the courses table.
  • Use a FULL JOIN to join the enrollments table.
  • The common column for both tables is courses.course_id = enrollments.course_id.
  • Sort the results by courses.course_id.

Рішення

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

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

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

close

Awesome!

Completion rate improved to 4

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

some-alt