HI Abhilash ,
Thanks for the reply. It did work. I have a slightly modified requirement. I have attached an image with this . The requirement is , the result set returns the salary and supplement for employees for last X ( it is a variable in my example it is 3, but user will pass the number of years he / she wants to see) years. I need to show all the salary for those years, and show the percentage change for those years and then show the supplements , and then show the percent change for supplements , then show the total and show the percentage change for it .
Any suggestions ?
Thanks for your help.