• Please provide table structures and the the output you want clearly. Then only someone can suggest something.