select a.supplier, a.balance, b.supplier, b.balance, c.supplier, c.balance
from (select id_po, status_po, supplier, sum(balance) as balance
from tb_name
where status_po = "รออนุมัติ"
group by status_po, supplier) a
outer join (select status_po, supplier, sum(balance) as balance
from tb_name
where status_po = "ค้างรับ"
group by status_po, supplier) b
on a.id_po = b.id_po
outer join (select status_po, supplier, sum(balance) as balance
from tb_name
where status_po = "ค้างจ่าย"
group by status_po, supplier) c
on a.id_po = c.id_po
;