For sum of numeric
SELECT SUM(num_val1) from R Table A where xxx
+ Select SUM(num_valx) from Table B where yyy
+ Select SUM(num_valeee) from Table C where rrr;
for sum of char values
SELECT CONCAT(SELECT SUM(char_val1) from R Table A where xxx ,
Select SUM(char_valx) from Table B where yyy,
Select SUM(char_valeee) from Table C where rrr
);
|