I like to show my data a specific way. i tried one way but no luck. Here i am giving sample data for two table which help other to reproduce the output.
Here is my sample