I did not expect so many answers about this question. Thanks.
I find by myself the "order by trick" to speed min/max function.
Jean-Gérard Pailloncy
---------------------------(end of broadcast)--------------------------- TIP 3: if posting/reading through Usenet, please send an appropriate subscribe-nomail command to [EMAIL PROTECTED] so that your message can get through to the mailing list cleanly