Skip to Content
Oracle SQL Revealed: Executing Business Logic in the Database Engine
book

Oracle SQL Revealed: Executing Business Logic in the Database Engine

by Alex Reprintsev
April 2018
Intermediate to advanced
393 pages
6h 8m
English
Apress
Content preview from Oracle SQL Revealed: Executing Business Logic in the Database Engine
© Alex Reprintsev 2018
Alex ReprintsevOracle SQL Revealedhttps://doi.org/10.1007/978-1-4842-3372-6_6

6. Recursive Subquery Factoring

Alex Reprintsev1 
(1)
London, UK
 

A subquery factoring clause (sometimes also referred to as a “with clause” or CTE – common table expression) was introduced in Oracle 9.2. At that time it did not allow us to define recursive subqueries and was mainly used to decompose the logic into named queries – factor out subqueries and reference them by names in the main query. CBO can decide whether to materialize results of factored out subqueries or plug them in as inline views. In the former case it can improve performance if the named query is referenced multiple times in the main query, while in the latter case it may have ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Oracle Database 11g Performance Tuning Recipes: A Problem-Solution Approach

Oracle Database 11g Performance Tuning Recipes: A Problem-Solution Approach

Sam R. Alapati, Darl Kuhn, Bill Padfield

Publisher Resources

ISBN: 9781484233726Purchase LinkPublisher Website