This question asks for a SQL query that returns the names of all the people with a score greater than 80.
Given a table of data with the following columns: id (integer) name (string) score (integer) Write a SQL query that returns the names of all the people with a score greater than 80. Example input: id | name | score ----|------|------ 1 | John | 90 2 | Jane | 60 3 | Joe | 85 4 | Jill | 75 Example output: name ---- John Joe
SELECT name FROM table WHERE score > 80; /* The above solution is optimal because it is the most efficient way to get the names of all the people with a score greater than 80. */
The candidate's solution is correct and demonstrates a good understanding of SQL.
Evaluated at: 2022-11-15 02:15:32