Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 62 Insurance
- 536K On-Premises Infrastructure
- 138.2K Analytics Software
- 38.6K Application Development Software
- 5.7K Cloud Platform
- 109.4K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.2K Integration
- 41.5K Security Software
Unnesting of scalar subqueries in select clause

Nenad Noveljic
Member Posts: 11 Blue Ribbon
The optimizer currently doesn't unnest scalar subqueries in the select clause, even when feasible.
Here's a list of such cases:
https://nenadnoveljic.com/blog/correlated-subqueries-in-the-select-clause-2/
Such unnested subqueries must be executed for every row in the driving rowset.