> Uh, what function in that table helps him --- I don't see it. I found GREATEST() and LEAST(), which in combination with COALESCE() returns exactly what I needed. I missed it because I was looking for numerical functions. Like so many other things in life, in retrospect, it's completely obvious.