Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
A little SQL puzzle
Message
 
 
To
18/01/2010 09:56:22
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Miscellaneous
Thread ID:
01444375
Message ID:
01444552
Views:
45
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform