We use this for our MS SQL 2000 database, maybe you can use it as a guide for your oracle db...
select (CASE a.status When 0 Then 'Pending' When 1 Then 'In Process' When 2 Then 'Issue' When 3 Then 'On Hold' When -1 Then 'Completed' When -2 Then 'Cancelled' Else 'Unknown' End) as Status, b.name as Parent, a.name as Task, CAST(SUBSTRING(a.extendedData,CHARINDEX('Instructions''=',a.extendedData)+15,CHARINDEX('>',a.extendedData) - CHARINDEX('Instructions''=',a.extendedData)- 16) as text) AS Instructions, CAST(SUBSTRING(a.extendedData,19, CHARINDEX ('Instructions''=',a.extendedData)-22) as text) as Comments, KUAF.Name as Owner, a.DateDue as Due from DTree a left outer join kuaf on a.assignedto=kuaf.id, Dtree b where a.parentid=b.dataid and a.SubType=206 and((a.Status=0) or (a.Status=1) or (a.Status=2) or (a.Status=3) or (a.Status=-1) or (a.Status=-2)) and (a.OwnerID IN (9476415,9536704)) order by a.ownerID DESC, a.status
Just update the OwnerID references to match your task list.
Dave
-----Original Message-----From: eLink Discussion: Livelink LiveReports Discussion [mailto:livereportsdiscussion@elinkkc.opentext.com] Sent: Thursday, May 17, 2007 10:29 AMTo: eLink RecipientSubject: LiveReport - Task Comments and Instructions
LiveReport - Task Comments and Instructions Posted by Vaughn, Shelly on 05/17/2007 10:20 AM
LL 9.5 SP1 - Oracle DB. Hi. I'm looking for SQL query to extract the Task Comments and Instructions from the EXTENDEDDATA field from the DTREE table. Any help would be greatly appreciated.
[To reply to this thread, use your normal E-mail reply function.]
============================================================
Discussion: Livelink LiveReports Discussionhttps://knowledge.opentext.com/knowledge/llisapi.dll/open/2249677
Livelink Server:https://knowledge.opentext.com/knowledge/llisapi.dll
To Unsubscribe from this Discussion, send an e-mail to unsubscribe.livereportsdiscussion@elinkkc.opentext.com.