Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

Explain Connect by Prior?

Answer Posted / abhijit

The start with .. connect by clause can be used to select
data that has a hierarchical relationship (usually some sort
of parent->child (boss->employee or thing->parts).


select a.*, level from emp a
start with mgr is null
connect by mgr = prior empno;

The start with .. connect by clause can be used to select
data that has a hierarchical relationship (usually some sort
of parent->child (boss->employee or thing->parts).

Is This Answer Correct ?    19 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is sql low level language?

961


How do you write a complex sql query?

1007


Is sql workbench free?

929


Does oracle roll back the transaction on an error?

960


what are the features and advantages of object-oriented programming? : Sql dba

952


What is the use of count (*) in sql?

980


What is embedded sql in db2?

956


what are the differences between char and nchar? : Sql dba

1055


how would you write a query to select all teams that won either 2, 4, 6 or 8 games? : Sql dba

1292


Which command is used to call a stored procedure?

950


Which column of the user triggers data dictionary view displays the database event that will fire the trigger?

970


What is rowtype?

954


What is a table partition?

1036


Is it possible to create startup or shutdown trigger for on-schema?

979


Does truncate table reset auto increment?

939