Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Timmed Mean
Message
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Autre
Titre:
Divers
Thread ID:
00764927
Message ID:
00766760
Vues:
28
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
>
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform