Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
A little SQL puzzle
Message
 
 
À
18/01/2010 09:56:22
Information générale
Forum:
Microsoft SQL Server
Catégorie:
Syntaxe SQL
Divers
Thread ID:
01444375
Message ID:
01444552
Vues:
44
>>You're right. For this problem between is clearly a winner.
>
>
>And that's why you don't need a cte
>
>avg of one record = sum/1
>avg of two record = sum/2

CTE in this problem doesn't hurt - you can do with it or without it - no difference.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform