oracle database query adding table 1 values and display in table 2 : tried the query in the mentioned image but could not crack in mysql database. can anyone help me out with the solution as soon as possible. thanks in advance.

[enter image description here][1]
 


  [1]: https://i.stack.imgur.com/XebM2.png