Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document Count for Given Folder

Status
Not open for further replies.

ujjval090683

Programmer
Nov 1, 2011
31
IN
Hi,

I am looking for a Query which gives me DOcuments count with and without versions fo a Given Folder.

How can I retrive that?
 
are you looking for a count of just that folder or the folder and all child folders etc ?

SELECT count(*) FROM dtree WHERE parentid=<id> AND subtype=144

will give you a count of all documents in the folder specified by <id>

Greg Griffiths
Livelink Certified Developer & ECM Global Star Champion 2005 & 2006
 
But, This only gives documents inside this folder.
Suppose there is folder inside given folder and it has also documents, then it should count all te documents.

Count should display immediate documents as well as documents withthing the nested folder.

Which query can give that?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top