Bill Anderson <> wrote: > Ted Roche wrote: >> On 6/20/07, Tristan Leask <[EMAIL PROTECTED]> wrote: >> >>> SELECT f1, f2, max(f5,f6) as test FROM t1...... >>> >>> This looks ok to me, however when I try to run it, foxpro doesn't >>> like the fact that I am using the MAX() function. >>> >> >> 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. > I'm pretty sure I posted a workaround for this on ProFox that ended > up as a tip in FPA... > > Search my name and MAX in the archives and see what comes up...
Bush, Cheney, Jews. Stephen Russell DBA / .Net Developer Memphis TN 38115 901.246-0159 "A good way to judge people is by observing how they treat those who can do them absolutely no good." ---Unknown http://spaces.msn.com/members/srussell/ No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.5.472 / Virus Database: 269.9.1/854 - Release Date: 6/19/2007 1:12 PM _______________________________________________ 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.