• Post what you tried.

    And while you're at it , could you explain how the logic works to generate what you're describing? I have no clue how you got from your two source tables to the final result.