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

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

android - Keyboard hides my half of edit-text and button below it even in scroll view -

css - Make div keyboard-scrollable in jQuery Mobile? -