i need to make the data in the column to be column head
this is the current result from my query .. :
select employee_id,reimbursement_type,SUM(amount) as [total amount],reimbursement_status from md_reimbursement group by employee_id,reimbursement_type,reimbursement_status
and i want it to be like this :
*just ignore the Status field
so the data reimbursement_type to become a column head and it SUM each amount.
i already tried using pivot but didnt get what i expected.
thx