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 2311 times
Edit
6
Community EvaluationsNo one has reviewed this question yet, be the first!
12
Which SQL keyword is used to sort the result of a SELECT statement?12
Write a SQL query to insert data into a table10
Write a SQL query to retrieve the products with a price less than 1000 and sort the results in descending order of price.15
Update a column in an SQL table32
Write a SQL query to retrieve the list of employees with a salary greater than 5100.15
Select only distinct values in a column using SQL10
Write the SQL query to delete a column from a table