adspace


How to order siblings in oracle hierarchy queries?

Answer Posted / Prashant Kumar Singh

To order siblings in Oracle hierarchy queries, you should use the ORDER BY clause. For example, consider the following query: SELECT * FROM department_hierarchy ORDER SIBLINGS BY department_name; This will sort the departments by their names.

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How do I remove duplicates in two columns?

1202


If a cursor is open, how can we find in a pl/sql block?

1252


Can delete statement be rollbacked?

1065


Does group by remove duplicates?

1120


what is dbms? : Sql dba

1070


what is bcp? When does it used? : Sql dba

1065


Is primary key always clustered index?

1101


how to use regular expression in pattern match conditions? : Sql dba

1125


Can we rollback truncate?

1083


what is schema? : Sql dba

1163


what is collation? : Sql dba

1242


what are the advantages of sql ? : Sql dba

1154


what are aggregate and scalar functions? : Sql dba

1142


Is primary key clustered index?

1027


Hi am new to PLSQL & facing problems in writing code like in SP, Functions, so any one having some SP coding with in depth explanation please share with me my Email ID suvarnaatsuvarna@rediffmail.com Or taking tanning on this please do contact me

2101