Hi
I am trying to create a Live Report that will have the below categories
- User ID
- Department
- Number of items in Personal workspace (split folders/documents, etc)
- Size of each personal workspace
I have managed to produce the below report that provide login, first
name, last name and will count the contents of the personal workspace.
SELECT k.name as Login, k.firstname,k.lastname, pw.items as "Count of
Items" from kuaf k, (select ownerid, count(*) as items
FROM dtree
WHERE ownerid in (SELECT ownerid FROM dtree WHERE subtype = 142)
AND CreateDate >= sysdate-365 -1 group by ownerid) pw WHERE k.id = -
(pw.ownerid)
I have then come up with one that will get me the department with first
name and last name.
SELECT k.FirstName"Firstname", k.LastName"Lastname", g.name"Department"
FROM DAuditnew,KUAF k,KUAF g WHERE k.ID = DAuditnew.Performerid AND
k.GroupID = g.ID
AND upper(DAuditnew.AuditStr)='LOGIN'
GROUP BY DAuditnew.performerID, k.FirstName, k.LastName, g.name
I would like to be able to combine these and also to have a column
displaying the size of each workspace if it all possible.
Any help would be much appreciated.