I just ran a test as I also didn't think the from was evaluated for each line 
(why should it be?) and can categorically confirm that it makes no difference 
whatsoever. As Stephen says, it is only evaluated once to open up the table.

Dave

-----Original Message-----
From: [email protected] [mailto:[email protected]] On Behalf Of 
MB Software Solutions General Account
Sent: 20 August 2012 19:16
To: ProFox Email List
Subject: Re: Query taking 4 minutes...ugh

On Mon, August 20, 2012 2:13 pm, Stephen Russell wrote:
> On Mon, Aug 20, 2012 at 12:27 PM, MB Software Solutions General 
> Account <[email protected]> wrote:
>
>> On Fri, August 17, 2012 12:29 am, Bill Anderson wrote:
>>
>>> Store the AddBS() function and the cClaimsTable reference to 
>>> variables, then use those variables in the SELECT statement.
>>>
>>> You're evaluating each expression with every row.
>>>
> ---
>
>
> No the From is evaluated only once for the engine to use to identify 
> where the data is and how to JOIN if a join is used.  The engine will 
> then evaluate which index to use and this is where the evaluation of 
> Index or Table,  Seek or Scan, will be defined for the actual 
> consumption of table data.


That's what I was thinking too, Steve.



[excessive quoting removed by server]

_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://leafe.com/mailman/listinfo/profox
OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message: 
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the 
author, and do not constitute legal or medical advice. This statement is added 
to the messages for those lawyers who are too stupid to see the obvious.

Reply via email to