Let's say I want to select max attribute between two columns on a query. it isn't the whole table max.
Something like that:
SELECT MAX(t1.c1, t2.c2)
FROM Table1 as t1, Table2 as t2
WHERE t1.id = t2.t1_id
AND ...... here goes more conditions.
I want to each row has mapped value representing the max between t1.c1 and t2.c2
Is that possible ?
joininstead.SELECT GREATEST(t1.c1, t2.c2) ...