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 > Data Access, Manipulation & Batch Languages > ANSI SQL > Recursive data with multiple hierarchical level

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 04-13-06, 11:25
akkm akkm is offline
Registered User
 
Join Date: Oct 2004
Posts: 7
Recursive data with multiple hierarchical level

There is a scenario, where user are associated with different groups and groups have super-groups and sub-groups.

The work assignments are divided into multiple tasks, which could be assigned at user level as well as group level, with could be a sub-group or super-group or both.

I'm able to do my select using rdbms-specific queries but unable to find a common sql, which would work for DB2, Oracle and SQL server.

Any input is welcome. Thanks.
Reply With Quote
  #2 (permalink)  
Old 04-14-06, 19:33
r937 r937 is offline
SQL Consultant
 
Join Date: Apr 2002
Location: Toronto, Canada
Posts: 19,524
are you talking about Oracle's CONNECT BY feature?

you will not be able to do the same thing in other databases
__________________
r937.com | rudy.ca
please visit Simply SQL and buy my book
Reply With Quote
  #3 (permalink)  
Old 04-15-06, 02:43
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
If you post your query, or a simplified version thereof, maybe someone could convert it to standard SQL.
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #4 (permalink)  
Old 04-24-06, 11:04
akkm akkm is offline
Registered User
 
Join Date: Oct 2004
Posts: 7
Thanks for the responses!

Yes. 'CONNECT BY PRIOR' was one the issue. But, the issue is resolved by creating a 'view' to list work-items and associated users.

Thanks again.
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