How can I efficiently return the minimum/maximum of two given expressions? Like SELECT MYMIN(a+b-c,d+e*f).
Thanks.