Suppose I have two tables A{int m} and B{int m} and I have to find maximum m among two tables using relational algebra but I cannot us
A{int m}
B{int m}
SELECT M FROM (SELECT M FROM A UNION SELECT M FROM B) ORDER BY M DESC LIMIT 1
This doesn't use MAX, just plain vanilla SQL.
MAX