Please provide sample DDL, INSERT statements and desired results (based on the sample data provided) if you would like people to provide a working solution.
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.