Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Query #2 - MySQL and MS-SQL
Message
From
07/03/2008 12:10:42
 
 
To
07/03/2008 12:05:01
Walter Meester
HoogkarspelNetherlands
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
01296743
Message ID:
01299769
Views:
19
The @invoices table in my example, in the read world of course is a table, which I presume would be indexed adequately. The @weekendings in my solution indeed would be a table variable, Performing a tablescan is neccesary because of the nature of the query. Indexing it would not speed up anything (as far as can see anyways). The real query would be optimized on the invoice date column of the 'real' table.

Walter, true, the @invoices table would normally be a regular indexed table - what I'm referring to is any table variable that you're using in place of a CTE.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform