rp2018 - Thursday, March 1, 2018 7:23 PM
The reason you've had no solutions is that you have not stated the problem in a way which is clear enough for people to understand and write code.
As the previous poster suggested, we need some consumable code for setting up example tables, with insert statements to create some sample data along with desired results. The link in my signature should help you understand what is required.
If you haven't even tried to resolve your issue, please don't expect the hard-working volunteers here to waste their time providing links to answers which you could easily have found yourself.