← Back to Joins
Question 2
Courses Nobody Is Taking
Courses Nobody Is Taking
Find every course that has no enrollments at all. Returncodeandtitle, sorted bycode. Use a join, not a subquery: the trick is to keep the courses that find no match inenrollments.
Expected result:
+--------+----------------------+ | code | title | +--------+----------------------+ | ART140 | Drawing Fundamentals | +--------+----------------------+ 1 row
Hints3 available
Sign in to use hintsTopics:
Joins
1
Tab to indent (Esc then Tab to move on) · Ctrl+Enter to run · Ctrl+Space to expand shortcuts (sel, ins, desc)
Results
Run your SQL to see every statement's output here, then how it compares with the expected answer.
Not sure what is in a table? SHOW TABLES lists them and DESCRIBE students shows the columns — or open the database browser on the left.