Ah, that makes sense.

Thanks Ted.

Tristan

-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
On Behalf Of Ted Roche
Posted At: 20 June 2007 14:43
Posted To: Profox Archive
Conversation: Select statement with a max() of 2 values
Subject: Re: Select statement with a max() of 2 values

MAX() is one of the few times there's a name collision between a
native VFP command and the SQL language. Ed's suggestiion of a UDF
will work. You could also include an inline IIF(f5>f6, f5, f6) to get
a similar effect.

You're not the first to find this. I suspect it might be in the Hacker's
Guide.

-- 
Ted Roche
Ted Roche & Associates, LLC
http://www.tedroche.com

--------------------------------------------------------------------------------------------------------------
This email was sent to [EMAIL PROTECTED] Unless otherwise agreed expressly in 
writing by Marine Software Limited, 
this communication and attachments are to be treated as confidential 
and the information in it may not be used or disclosed except for the 
purpose for which it was sent.
If you are not the intended recipient of this  communication  you should 
destroy it without copying, disclosing or otherwise using its contents.
Please notify the sender immediately of the error. 
[EMAIL PROTECTED]

Marine Software Limited. Registered in England & Wales. No 2576494
Regsitered Office. Unit3, Aylesham Business Pk, Aylesham. Kent. UK
------------------------------------------------------------------------------------------------------------------



_______________________________________________
Post Messages to: ProFox@leafe.com
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