You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Probably, the implementation does not cover this kind of subquery expression. However, you could use common table expressions (CTE) to get the same result.
-- common table expressions-- https://dbis-uibk.github.io/relax/help#sql-with
WITH temp AS (SELECTmax(salary) AS max_salary
FROM instructor)
SELECT ID, name
FROM instructor, temp
WHERE salary = max_salary;
Could you help me explain why I get the following error when I enter the following SQL syntax,and how to modify it?
SQL syntax:
SELECT ID, name
FROM instructor
WHERE salary = (SELECT MAX(salary) FROM instructor)
Error: at line 3: Expected ";", "except", "fetch", "group", "having", "intersect", "limit", "offset", "order", "union", or end of input but "=" found.
The text was updated successfully, but these errors were encountered: