"Lorderon" <[EMAIL PROTECTED]> wrote: >> the only why i know how to do this is to write the ind sums to a new table >> and then sum that table.. > > How you do it with a new table?
CREATE TEMPORARY TABLE table3 (SELECT SUM(price) as column1 FROM table1) UNION ALL (SELECT SUM(price) as column1 FROM table2); Then: SELECT SUM(column1) FROM table3; -- For technical support contracts, goto https://order.mysql.com/?ref=ensita This email is sponsored by Ensita.net http://www.ensita.net/ __ ___ ___ ____ __ / |/ /_ __/ __/ __ \/ / Egor Egorov / /|_/ / // /\ \/ /_/ / /__ [EMAIL PROTECTED] /_/ /_/\_, /___/\___\_\___/ MySQL AB / Ensita.net <___/ www.mysql.com -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe: http://lists.mysql.com/[EMAIL PROTECTED]