Quote:
Originally Posted by aflorin27
Depends on the WHERE condition. Look at this:
SELECT some_fields
FROM some_table
WHERE a_field = (sub_SELECT)
Then look at ORA-01427
|
Yeah I understand it's because of the "=" which means we're only allowed one row in this case.
But what if it was WHERE a_field in (sub_SELECT) ?
I mean, the sub select can return a full table so how do I know what is the maximum number of rows returned without any clue on the WHERE clause?
That's why I'm confused by this question :/