select * from bill left join container on bill.cid = container.cid left join main on container.ntno = main.ntno where main.ntno='140242' group by bill.shipper
select main.ntno,container.c_no,bill.shipper,sum(bill.count_ctn),sum(bill.count_kgs),sum(bill.count_cbm) from bill left join container on bill.cid = container.cid left join main on container.ntno = main.ntno where main.ntno='140242' group by bill.shipper