test - not functional yet
Q&A for professional and enthusiast programmers
-- Q by day stats -- Enter Query Description set nocount off declare @QStats table (PostId int, zeday char(8), views int) insert @QStats select Id, CONVERT(char(8),CreationDate,112), ViewCount from Posts where ParentId IS NULL; SELECT zeday, sum(views) as totv FROM @QStats GROUP BY zeday;