In a previous post and with the idea of this forum, I managed to add the values of 2 tables that are identical in the structure.
select sum (AP) AP, sum (T) T, sum (CA) CA, sum (H) H, sum (2H) 2H, sum (3H) 3H, sum (HR) HR, sum (CE) CE, sum (BB) BB, sum (P) P, sum (BR) BR, sum (SF) SF, sum (TB) TB from ( select AP, T, CA, H, 2H, 3H, HR, CE, BB, P, BR, SF, TB from stats where id = 10 union all select AP, T, CA, H, 2H, 3H, HR, CE, BB, P, BR, SF, TB from stats2017 where id = 6) x
and he correctly showed me the sum of the 2 tables.
Now what I'm missing is calculating the average is by dividing the total value between H / T , but it must be from the sum of the 2 tables.