How to write complex SQL Query for the below case?
Please have an understanding and view of my data.
Below information will give an idea of what each column me