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

Winapi c++: DialogBox hangs when breaking a loop -

vb.net - Font adding using PDFsharp -

javascript - jQuery iScroll clickable list elements while retaining scroll? -