← Back to Joins
Question 98
Who Teaches in Winter 2026
Who Teaches in Winter 2026
List every instructor teaching a course this winter. Return the instructor'sfirst_nameandlast_nameand the coursecode, one row per course, so an instructor with two winter courses appears twice. Only courses whosesemesteris'Winter 2026'count. Sort bycode.
Expected result:
+------------+-----------+---------+ | first_name | last_name | code | +------------+-----------+---------+ | Tomasz | Nowak | BIO305 | | Daniel | Reyes | CS201 | | Mei | Chen | CS230 | | Daniel | Reyes | CS350 | | Marcus | Lindqvist | ENG250 | | Priya | Natarajan | MATH220 | +------------+-----------+---------+ 6 rows
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.