I am learning SQL. A task is to write the expression
SELECT MIN(Price), ProductName
FROM Products;
The editor https://www.w3schools.com/sql/trysql.asp?filename=trysql_op_in and takes an image of the results.
My teacher says that it's working fine for him. When I do it, SQL returns
You tried to execute a query that does not include the specified expression 'ProductName' as part of an aggregate function
The answers I found included changing the settings of the program (which I can't do) or doing things that I haven't learned yet. Why does the expression return different things for me and my teacher and what can I do to change this?