Skip to content
Advertisement

How to properly perform a SELECT query [closed]

I have this query in SQL Server:

I get this result:

The subquery returned more than one value, which is not correct when followed by =,! =, <, <=,>,> = Or when used as an expression.

I do not understand why it is due and how to correct it, I would greatly appreciate it if you could give me an idea of ​​how to solve it.

Advertisement

Answer

Just another option is to re-write the queries as a JOIN … Perhaps multiple records should be expected.

Example

User contributions licensed under: CC BY-SA
6 People found this is helpful
Advertisement