Hi,
My need is to find the datasize of all the document versions inside content server 10 except for the latest 20 version of each document.
Example : We have 1000 documents and each has 25 versions, so I need to find sum of datasize of all the documents for the oldest 5 versions only (need not to count the latest 20 version datasize).
I am able to write a query which will result out all the versions except for the latest 20 -
--------------------------------------------------------------
SELECT *
FROM (
SELECT datasize, versionid, docid, version, rownum as rn
FROM dversdata where docid = 12345
ORDER BY version desc
)
where rn > 20;
----------------------------------------------------------------
The above query is giving out all the version information of a particular document except for the latest 20.
I need help to sum up the datasize and also to get the datasize of all the documnet inside CS 10.