If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > How to Implement Oracle Connect By & Start With clauses in DB2 UDB V8.2

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-06, 23:01
maheshbs maheshbs is offline
Registered User
 
Join Date: Mar 2006
Posts: 12
How to Implement Oracle Connect By & Start With clauses in DB2 UDB V8.2

Hi,

Can anybody tell me the equivalent for Oracle Connect By & Start With Clauses used to select data with hierarchical relationships in DB2.My Query in Oracle 9i is like this:-

SELECT
code,
budgetCode,
budgetName,
groupCode
FROM
acBudgetGroup
CONNECT BY PRIOR code = groupCode
START WITH groupCode IS NULL;

Please provide me with the DB2 Equivalent.

Regards,
Mahesh
__________________
Mahy
Reply With Quote
  #2 (permalink)  
Old 03-16-06, 04:21
Shizuma Shizuma is offline
Registered User
 
Join Date: Mar 2006
Posts: 14
Actually I had the same problem, and the only solution I found was that: http://www-128.ibm.com/developerwork...dm-0510rielau/
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On