Challenge: FULL JOIN Usage
ã¡ãã¥ãŒã衚瀺ããã«ã¯ã¹ã¯ã€ãããŠãã ãã
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.
ã¹ã¯ã€ãããŠã³ãŒãã£ã³ã°ãéå§
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
coursestable. - Use a FULL JOIN to join the
enrollmentstable. - The common column for both tables is
courses.course_id = enrollments.course_id. - Sort the results by
courses.course_id.
è§£ç
ãã£ãŒãããã¯ããããšãããããŸãïŒ
single
AIã«è³ªåãã
AIã«è³ªåãã
äœã§ã質åããããææ¡ããã質åã®1ã€ã詊ããŠãã£ãããå§ããŠãã ãã