7 lines
		
	
	
		
			376 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
			
		
		
	
	
			7 lines
		
	
	
		
			376 B
		
	
	
	
		
			SQL
		
	
	
	
	
	
select vi.versionid, vn.foldername, vi.formatid, count(*) howmany -- itemid, .dbo.ve_getshortpath(itemid) location 
 | 
						|
from vefn_getversionformatitems('') vi 
 | 
						|
join vefn_getversionnames() vn on vn.versionid = vi.versionid
 | 
						|
join contents cc on cc.contentid = vi.contentid
 | 
						|
where cc.type between 10000 and 19999
 | 
						|
--and vi.formatid = 13
 | 
						|
group by vi.versionid, vn.foldername, vi.formatid |