Archived
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?
5
Community Evaluations
Alexandre Seris
05/07/2024
La deuxiĂšme rĂ©ponse est marquĂ©e comme fausse alors qu'elle marche aussi (mĂȘme si je suis d'accord pour dire que le join est plus propre)
El Mehdi
31/10/2024
La rĂ©ponse 2 est aussi correcte. La question mentionne "quelle requĂȘte" et non pas quelle est la meilleure requĂȘte. Donc, cela inclut aussi les subquery.
10
Write a SQL query to retrieve the products with a price less than 1000 and sort the results in descending order of price.19
Select only distinct values in a column using SQL39
Write a SQL query to retrieve the list of employees with a salary greater than 5100.16
Write a SQL query to insert data into a table16
Which SQL keyword is used to sort the result of a SELECT statement?16
Update a column in an SQL table11
Write the SQL query to delete a column from a table