-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com]Sent: Friday, May 22, 2009 8:22 PMTo: eLink RecipientSubject: RE Add "owner" to Oracle hierarchy sql RE Add "owner" to Oracle hierarchy sql Posted by ldavies (Davies, Lindsay) on 2009/05/22 10:51 In reply to: Add "owner" to Oracle hierarchy sql Posted by unilev02user2 (Song, Ann) on 2009/05/22 10:19 Message from Lindsay Davies <ldavies@opentext.com> via eLinkHi Ann, The current owner is stored in DTree.UserID and this can be converted from a number to a login name or first+last name if you join that value to Kuaf.ID If you were trying the join with OwnerID that would not work, because OwnerID represents the workspace that contains (owns) the items, not a user. Apologies for the confusing use of terminology, but it has been around since Livelink began. Regards Lindsay Davies European Escalation Team Opentext From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: 22 May 2009 15:21To: eLink RecipientSubject: Add "owner" to Oracle hierarchy sql Add "owner" to Oracle hierarchy sql Posted by unilev02user2 (Song, Ann) on 2009/05/22 10:19 In reply to: LiveReport using ORACLE SQL Posted by unilev02user2 (Song, Ann) on 2009/05/21 16:13 Thank you Bhupinder...I checked out the previous threads and came up with this:select lpad(' ', level * 5, '-') || name "Name", subtype "Subtype", parentid "ParentID", dataid "DataID", groupid "GroupID", createdby "CreatedBy" from dtree where subtype = 0 start with dataid = %1 connect by parentid = PRIOR dataidIt works great but I need to include the "owner" (not creator) of each folder and can't seem to get it to work when including kuaf in sql.Any help would be appreciated....thanks