Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

PL/SQL 101 : WITH Clause

BluShadowJan 20 2017 — edited Mar 14 2023

Often misunderstood by people new to SQL, the WITH clause (known in other databases as Common Table Expressions or CTE's, but in Oracle is known as the Subquery Factoring Clause), aside from being difficult to find in the documentation (if you don't know where to look), has many good uses. The attached PDF document details the uses of WITH with some examples.

PLSQL 101 - WITH Clause.pdf

(Edit: Now re-uploaded for new forum platform)

Comments

Srinivas Vanahalli

Yesterday i was searching in internet for some examples to understand recursive with clauses for my practice, found one or two. This document has a lot examples with nice explanation, i will practice.

Nice document.

Thanks

Kalpataru

Very useful and helpful document. Thanks @"BluShadow" keep it up.

Elamaran Police

Nice document with good examples. Thanks BluShadow

Zlatko Sirotic

Very nice article, as always.

Thanks and regards,

Zlatko

cormaco

This content requires flash! Honestly?

KayK

This content requires flash! Honestly?

download the pdf will do the trick

Evandro Lima-Oracle

Congratulations, excellent material for those who want to take the first steps in this technology.

Rosario Vigilante

Simply: Great!!

.... as always.

Thanks

stom

This pdf is great. Thanks a ton!

There is a minor typo on page 8 I thought I'd point out. “b) we has some aptitude to understand what they were talking about.”

BluShadow

@stom Thanks. Yeah, there are probably a few typos in my various PL/SQL 101 documents… Just haven't had the time to re-work them ;)

1 - 10

Post Details

Added on Jan 20 2017
10 comments
6,220 views