I got this far but it seems I get two entries if the two biggest documents are simply versions of the same doc:
SELECT content.title, character_length(body) as characters, contenttype
FROM bodycontent, content
WHERE bodycontent.contentid = content.contentid
ORDER BY characters desc
LIMIT 30;
How can I just get the latest version for each page? (I'm using postgresql)
Thanks