Here in that pivot query i dont want to show max(amount) i want to show only amount so when i wrote only amount this shows an error
Incorrect syntax near the keyword 'for'.
select employeeid,[56],[8]
from
(select fs.employeeid,
fd.Code,
fd.Amount from fs_table1 fs
inner join fs_table2 fd on fs.sIndex=fd.sIndex
where fs.comid in (813,814)
and fd.Code in (56,8)
) p
pivot
(max(Amount) for code in ([56],[8])) as pb
order by employeeid
any solutions