I need my query to pull all DirName’s what have the following prefix ‘site/test/test/’
is the correct syntax a ‘*’
SELECT DirName, count(*) AS FileCount, SUM(Size)/1024 as 'SizeKB'
FROM alldocs
Where DirName = 'site/test/test/*'
GROUP BY dirName
ORDER BY DirName
You need to use SQL’s LIKE clause:
See http://www.sql-tutorial.net/SQL-LIKE.asp