Hi there,
I have little experience with creating SQL queries and I'm trying to create a LiveReport to show me the sizes of the Personal Workspaces for all the accounts that are disabled. So far I have a query that shows all of the disabled users:
select ID, Name, LastName, Firstname, UserPrivileges from kuaf where UserPrivileges like '14' OR UserPrivileges like '2062' order by UserPrivileges, LastName
and a query that will show me the size of all Personal Workspaces:
SELECT SUM(dversdata.datasize)/(1024*1024) "Size(MB)", SUM(datasize/1024) "Size(KB)", COUNT(dversdata.datasize) "Item Count", -dt.ownerid AS "Owner ID", dt2.NAME "Personal Workspace Name" FROM dtree dt, dtree dt2, dversdata WHERE dversdata.docid = dt.dataid AND dt.ownerid IN (SELECT ownerid FROM dtree WHERE SUBTYPE = 142) AND dt2.dataid = -dt.ownerid GROUP BY dt.ownerid, dt2.NAME ORDER BY SUM (dversdata.datasize) DESC
How do I combine those 2 queries? I've tried different combinations and none of them work.
Thanks in advance for any help you can provide.
Ian