Question from the SQL - Fundamentals test

Write a SQL query to retrieve the names of students enrolled in the course with ID 1.

Easy

Given the following 'students' and 'students_courses' tables:

students:
| student_id | name   |
|------------|--------|
| 1          | Alice  |
| 2          | Bob    |

students_courses:
| student_id | course_id |
|------------|-----------|
| 1          | 1         |
| 1          | 2         |
| 2          | 1         |

Which SQL query retrieves the names of students enrolled in the course with ID 1?

Author: Vincent CotroStatus: PublishedQuestion passed 2322 times
Edit
6
Community EvaluationsNo one has reviewed this question yet, be the first!