sql - Hierarchical query without a start with clause -
i working on db schema hierarchical data. lets schema following -
id1 parent_id1 id2 id3 where id1 parent_id1 have hierarchy information. table indexed on id1 , id2.
now, want retrieve records in hierarchical way such records have id3 = somevalue
i thinking following query -
select * table id3 = somevalue connect prior id1 = parent_id1 i have id2 corresponding id3 = somevalue. not know root rows query.
now, how efficiency impacted if include or not include id2 in clause. , how costly query without start clause. have read in case, oracle treat each row root row , connect accordingly. wanted have better understanding of use case.
thanks in advance.
Comments
Post a Comment