Skip to content
Advertisement

Only one expression can be specified in the select list when the subquery is not introduced with EXISTS. SQL

I am trying to run my query but return error : Only one expression can be specified in the select list when the subquery is not introduced with EXISTS.

Advertisement

Answer

Use the APPLY operator for the subquery:

You can incorporate any amount of columns resulting from the APPLY operator. Use CROSS APPLY instead of OUTER APPLY if you want to filter NULL matching results.

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