Using a Group By on DateAddedd and PageName and a Count() should give you
what you want; something like:
Select DateAdded, PageName, Count(*) from MyTable Group By DateAdded,
PageName Order by DateAdded ASC, Count(*) DESC, PageName ASC

Signature
Sylvain Lafontaine, ing.
MVP - Technologies Virtual-PC
E-mail: http://cerbermail.com/?QugbLEWINF
> Hello Everyone,
>
[quoted text clipped - 25 lines]
> can always do this in the code on my asp.net page, any help on this would
> be appreciated.