Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Which statement is 'Better'
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 6
Miscellaneous
Thread ID:
01048319
Message ID:
01376533
Views:
26
See also http://www.zimbio.com/SQL/articles/589/SQL+SERVER+SELECT+1+vs+SELECT+Interesting

Not every one agrees.

http://forums.asp.net/t/1374663.aspx

>>Sergey,
>>
>>>It doesn't apply to EXISTS subqueries because SQL Server doesn't retrieve any data for them.
>>
>>That is not our experience based on examining the I/Os that occur. I'll see if I can come up with some examples against northwind later tonight.
>
>Hi David,
>
>It turned out that I was wrong. See EXISTS Subqueries: SELECT 1 vs. SELECT *
>Quote: "The QP will take and expand all *'s early in the pipeline and bind them to objects (in this case, the list of columns). It will then remove unneeded columns due to the nature of the query."
>Recomendation: Use something like "SELECT 1 ..."
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform