Welcome aboard! We are happy you are here and wish you good net-raft!
TABLE NUMBERS1
ID POINTS 
1 5
1 10
2 30
2 5
2 6
TABLE NUMBERS2
ID POINTS 
2 5
1 10
2 30
2 5
1 6
MAX POINTS: 300
select ID, ROUND((SUM(POINTS) / 300) * 100) as number from (select ID, POINTS from NUMBERS1 UNION ALL select ID, POINTS from NUMBERS2) t group by ID order by number desc; 
The most helpful SQL solutions
how to execute select into using sql ?SQL Click to see more ... 623 53