Jean, I remember submitting a tip to the Foxpro Advisor for this very issue. But offhand I don't remember what the answer was. I wrote the tip using MAX() but it applied to MIN() as well.
If someone doesn't come up with the answer in a few hours I'll look into it further. But there *is* an answer. Bill Anderson On Tue, Oct 28, 2014 at 10:17 AM, Jean MAURICE <[email protected]> wrote: > I have a curious issue ! > > In a SQL query, I get 4 numeric fields from 4 tables (with subqueries). I > want a fifth field containing the minimum value of the 4 fields (of the > current line). But when I write MIN(), even in an EVALUATE command, SQL > thinks it is a SQL MIN(). > > Is there a way to compute this minimum WITHOUT creating an external > function ? > > Nowadays, I just add a REPLACE ALL after the REQUERY() but I wonder if we > can do better. > > Thanks in advance > The Foxil > [excessive quoting removed by server] _______________________________________________ Post Messages to: [email protected] Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech Searchable Archive: http://leafe.com/archives/search/profox This message: http://leafe.com/archives/byMID/profox/CA+O1enHqQazrKHzcnNTDPFaZ03R=olna9+fdx_dgupa0znw...@mail.gmail.com ** 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.

