• This is not easy without knowing more about your data and table structures.

    Please follow the link in my signature to see how to post easily consumable DDL and sample data.

    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.