I writing a query within ms sql server 2005 and having some trouble getting it to run. I need my query to include:
- Include all docs from Date Range 2009-07-20 to 2009-08-04
- Include a Sum column using the 'Size' field
- Include a record count column
Group By Name
select Name, count(*) AS FileCount, SUM(Size)
From alldocs Group by DirName HAVING TimeCreated >= '2009-07-20' AND TimeCreated <= '2009-08-04'