Subquery Factoring (WITH) Clause
(Doc ID 1662498.1)
Last updated on JANUARY 23, 2020
Oracle Database - Enterprise Edition - Version 220.127.116.11 and later Oracle Database Cloud Schema Service - Version N/A and later Oracle Database Exadata Cloud Machine - Version N/A and later Oracle Cloud Infrastructure - Database Service - Version N/A and later Oracle Database Backup Service - Version N/A and later Information in this document applies to any platform.
NOTE: In the images and/or the document content below, the user information and data used represents fictitious data from the Oracle sample schema(s) or Public Documentation delivered with an Oracle database product. Any similarity to actual persons, living or dead, is purely coincidental and not intended in any manner.
If similar subqueries appear more than once in a sql, it is worth trying to rewrite the query using WITH subquery. There are some things we should consider in order to get the benefit from it.
To view full details, sign in with your My Oracle Support account.
Don't have a My Oracle Support account? Click to get started!