I have 2 table with the same column in each
Can I create a query that will join the 2 tables and give me the max between the 2
I came up with
SELECT MAX(certificate_number) AS max FROM contacts_cstm
UNION
SELECT MAX(certificate_number) AS max FROM accounts_cstm
But this gives me the max value from each. How can I modify this query to give me the max between the both of them
Thanks
Wrapping with another query will do the trick: