php - I want to make a sum from 5 tables that have one column named "UP" -


i have 5 tables (bepd , tirpd , elpd , frpd , kopd) same column named "up" , , want make sum of tables , show in php code . can me ?

select  sum(sumup)    (         select  sum(up) sumup            table1          union         select  sum(up)            table2         union         select  sum(up)            table3         union         ...         ) subqueryalias 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -