The thing is that it does return one row.
Here’s the thing.
SELECT...
FROM...
WHERE...
GROUP BY...
HAVING randomNumber > (SELECT value FROM.....)
Whenever I have signs such as =, > it always returns me this error. When I do IN it doesn’t.
Are you not supposed to use comparison signs when comparing to another table?
When you type:
it is equivalent to using:
Don’t use the second notation – but it illustrates a point. When the SELECT returns more than one value, you must use ANY or ALL with the comparator. When you omit ANY or ALL, then you must have a SELECT that returns exactly one value.