Skip to main content

Hierarchical Queries: Connect by

  • Chapter
  • First Online:
Book cover Oracle SQL Revealed
  • 839 Accesses

Abstract

The connect by clause is used to query hierarchies if they are stored as parent-child relationships, also known as an adjacency lists model. Simply speaking, this model means that a parent – child pair is stored for each child. In general adjacency lists can represent directed graphs, not only hierarchy trees; in this case the list describes the set of neighbors of a vertex in the graph. So an adjacency list model is much wider and a parent-child model is one of its implementations.

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

Access this chapter

eBook
USD 19.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 29.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

© 2018 Alex Reprintsev

About this chapter

Check for updates. Verify currency and authenticity via CrossMark

Cite this chapter

Reprintsev, A. (2018). Hierarchical Queries: Connect by. In: Oracle SQL Revealed. Apress, Berkeley, CA. https://doi.org/10.1007/978-1-4842-3372-6_5

Download citation

Publish with us

Policies and ethics