Is it possible to SELECT
the minimum or maximum among two or more values. I'd need something like this:
SELECT MAX_VALUE(A.date0, B.date0) AS date0, MIN_VALUE(A.date1, B.date1) AS date1
FROM A, B
WHERE B.x = A.x
Can I achieve this by only using MySQL?
See Question&Answers more detail:os