I have data set for request submission and its approval process history. I need to represent each request number with its submission sequence date and final approval and reject date. Like I have data set like this enter image description here attached image. and I want to display it as shown in below image. enter image description here
I tried pivoting but couldn't get it because pivot will work on only aggregate function
This query should do it: