

PRIOR clause, which defines how the current row (child) relates to a prior row (parent). In its simplest form a hierarchical query needs a definition of how each child relates to its parent. The following table contains hierarchical data.ĬONSTRAINT tab1_tab1_fk FOREIGN KEY (parent_id) REFERENCES tab1(id)ĬREATE INDEX tab1_parent_id_idx ON tab1(parent_id)
