Reputation: 1297
This may seem a little dumb question but what happens if I have a subquery in COALESCE
which returns 2 records like this:
select
coalesce(<some subquery>,'') as "result",
column2, column3, .....
from <table name>
Now if the subquery returns 2 results what will the output of whole query?
Upvotes: 1
Views: 608
Reputation: 204774
You will get an error saying that the subquery returns more than 1 row.
Upvotes: 2