Hi Gianni

> Message: 8
> Date: Wed, 20 Jun 2007 15:46:23 +0200
> From: Gianni Turri <[EMAIL PROTECTED]>
> Subject: Re: Select statement with a max() of 2 values
> To: [EMAIL PROTECTED]
> Message-ID: <[EMAIL PROTECTED]>
> Content-Type: text/plain; charset="us-ascii"
>
> Using evaluate() may impact less on performance.
>
> SELECT f1, f2, evaluate("max(f5,f6)") as test FROM t1......
>
> Gianni

Eval would be faster than a macro sub, but that would be slower than
an IIF or other built in VFP function as you'd have one function EVAL
firing another function MAX instead of just one function IIF().
Further that is strictly a VFP way to do it and could not be
duplicated in other backends - something IMO we should avoid if
possible.

HTH


_______________________________________________
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