For the tables below, I need to write a query that will generate the desired output. How can i solve this question using with recursive function.
Note: I solved with EXP(