Hi guys, I'm developing SQL query to create LiveReport to generate all created and modified documents from 1 folder in a weekly period.
I have succeeded to get all users who created the documents. However, my question is how to get username who modified the documents since there is no "ModifiedBy" field in DTree table. Below is my query.
select d.dataid, d.name, to_char(d.createdate, 'MON DD, YYYY HH24:MI:SS') as CREATEDATE, k.lastname, k.firstname
from DTree d
inner join kuaf k on d.createdby = k.id
where ((d.CreateDate>=(sysdate-7)) and (d.CreateDate<=sysdate))
and d.subtype = 144
connect by prior dataid = parentid start with parentid = <parentid>
order by d.name asc
Does anyone know how to get the users who modified documents from this query?
Thanks!
I have succeeded to get all users who created the documents. However, my question is how to get username who modified the documents since there is no "ModifiedBy" field in DTree table. Below is my query.
select d.dataid, d.name, to_char(d.createdate, 'MON DD, YYYY HH24:MI:SS') as CREATEDATE, k.lastname, k.firstname
from DTree d
inner join kuaf k on d.createdby = k.id
where ((d.CreateDate>=(sysdate-7)) and (d.CreateDate<=sysdate))
and d.subtype = 144
connect by prior dataid = parentid start with parentid = <parentid>
order by d.name asc
Does anyone know how to get the users who modified documents from this query?
Thanks!