Geeks Talk

Prepare for your Next Interview


Welcome to the Geeks Talk forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

select

This is a discussion on select within the SQL forums, part of the Databases category; Can any one tell me why and when do we use CONNECT BY clause in a select statement...

Go Back   Geeks Talk > Databases > SQL
Register Blogs FAQ Tag Cloud Calendar Mark Forums Read
  #1 (permalink)  
Old 01-12-2009
Junior Member
 
Join Date: Dec 2008
Location: India
Posts: 12
Thanks: 8
Thanked 2 Times in 2 Posts
reenaj17 is on a distinguished road
select

Can any one tell me why and when do we use CONNECT BY clause in a select statement
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 01-12-2009
Contributing Member
 
Join Date: Jan 2009
Posts: 31
Thanks: 0
Thanked 3 Times in 3 Posts
chaitra murthy is on a distinguished road
Re: select

Connect by clause is used to select the data that has a hierarchical relationship.
Ex: Boss-Employees, Parent-Children etc

To learn more about this:-
Reply With Quote
The Following User Says Thank You to chaitra murthy For This Useful Post:
  #3 (permalink)  
Old 01-12-2009
Expert Member
 
Join Date: Nov 2008
Location: Chennai
Posts: 303
Thanks: 1
Thanked 37 Times in 32 Posts
amitpatel66 is on a distinguished road
Re: select

Connect by clause is maily used to fetch the hierarchical data from the database. Its basically used to denote the parent child relationship.
Few of them are:
1. Employee - manager
2. Main menu - sub menus
3. Business unit - sub business units

you can check more on connect by clause here and here

hope this helps
Reply With Quote
The Following User Says Thank You to amitpatel66 For This Useful Post:
  #4 (permalink)  
Old 01-13-2009
Contributing Member
 
Join Date: Jan 2009
Posts: 31
Thanks: 0
Thanked 3 Times in 3 Posts
chaitra murthy is on a distinguished road
Re: select

I found this link very useful for
Hierarchical queries
Reply With Quote
Reply

  Geeks Talk > Databases > SQL

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads

Thread Thread Starter Forum Replies Last Post
Confused to select whether mba or mca vivinkarthik Career Advice 1 08-13-2008 02:08 AM
Is Select DML? karthizen Oracle 6 06-11-2008 11:21 PM
select * from jayanth511 SQL 4 03-04-2008 11:10 PM
SELECT statement... nitin_padwal Oracle 2 01-10-2008 08:50 AM
Select within select neeraj_sigh SQL 7 12-09-2007 04:59 AM


All times are GMT -4. The time now is 04:24 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.3.1
Copyright © 2009 GeekInterview.com. All Rights Reserved