You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register
Get Started: AI Resources for Oracle Cloud HCM – Go Here

Progress with Redwood: Redwood Resources for Oracle Cloud HCM -  Go Here

Using WITH in SQL versus sub-query-which is better?

edited Feb 8, 2020 5:46AM in Reporting and Analytics for HCM 1 comment

Summary

Using WITH in SQL versus sub-query-which is better?

Content

Hi Experts,

Can someone help me understand if using WITH in SQL query really improve performance versus a sub-query or a scalar inline?
I don't really see why unnecessary you create a virtual table with tons of data when you will anyhow cut of ahlf of it using the following main query where you are probably going to use the WITH table in an INNERJOIN?
Isn't a tightly bound sub-query more faster?

Thanks,
Aloka

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!