Skip to main content

Correlating Inline Views

  • Chapter
  • First Online:
Practical Oracle SQL
  • 1413 Accesses

Abstract

Most of the time in SQL, you can simply join tables or views to one another to get the result you want. Often you add inline views and scalar subqueries to the mix, and you can soon create relatively complex solutions to many problems. But scalar subqueries can only return a single column and inline views can normally not reference tables from outside; the workarounds to either can sometimes lead to inefficiencies. For both those problems, it has been possible since version 12.1 to solve them by correlating the inline view with lateral or apply.

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 2020 Kim Berg Hansen

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Berg Hansen, K. (2020). Correlating Inline Views. In: Practical Oracle SQL. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-5617-6_1

Download citation

Publish with us

Policies and ethics