Hi,
I have a query that returns the last 3 salaries of employees but I want to display the results in 1 row as Sal1, Sal2, Sal3. Anybody know how to do this?
My query is:
select b.REFNO, s.SA02D, s.SA04P from basic b, salary_history s
where b.BGROUP = s.BGROUP
and b.REFNO = s.REFNO
and s.SA02D...