Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Timmed Mean
Message
General information
Forum:
Microsoft SQL Server
Category:
Other
Title:
Miscellaneous
Thread ID:
00764927
Message ID:
00766760
Views:
29
I get the exact same value... maybe I was just being paranoid. Your method does make more sense to me though. I think Ill use it instead of mine. Thanks for your input.

Eric



>Would this work for you?
select avg(x.pageViews) as avgPageViewsPerDay
>	FROM (select top 95 percent count(*) as pageViews from hits
>		group by CONVERT(char(8), viewTime,112) AS ViewDate
>		order by pageviews asc ) x
>	JOIN (select top 95 percent count(*) as pageViews from hits
>			group by CONVERT(char(8), viewTime,112) AS ViewDate
>			order by pageviews desc ) y
>		ON x.ViewDate = y.ViewDate
>
>
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform