Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query #2 - MySQL and MS-SQL
Message
From
07/03/2008 14:36:40
Walter Meester
HoogkarspelNetherlands
 
 
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01296743
Message ID:
01299851
Views:
21
>Would not matter as far as I can see. The whole contents of that table has to be read.
>
>If you look at the execution plan when a CTE is used, you'll see that CTEs are "in-lined" into the query - they are not materialized and stored. While not a hard and fast rule, CTEs are likely to be a tad more efficient (though the user is not likely to notice any difference)

I very much doubt that. Both have to be scanned internally to process the query. I don't see much difference here. It probably needs a very large set before any difference would show either way.
Previous
Reply
Map
View

Click here to load this message in the networking platform