If inner subquery returns zero rows then what will be the answer? No rows return, outer query result will be shown, error…
A:
It depends on what you are using the subquery for. If it's to display data, the result of the subquery will be null. If you are using it for an inner join, then the join operation will return no rows.
Gerrie Schenck
2009-06-19 09:47:08
+1
A:
In scalar context the subquery will return:
NULLif0rows returned- The value returned if
1row returned - An error if
2or more rows returned.
Quassnoi
2009-06-19 09:48:58