One of the sql logic is moving to backend and I need to generate a report using shell scripting. For understanding, I\'m making it simple as follows.
My input file -