I am having two tables, t1, t2. My tables and expected result are given below. My table schema is in sqlfiddle
t1:
id branch_name 1 branch1 2
I think this is the query you are looking for:
SELECT t1.branch_name, COALESCE(SUM(send.vqty), 0) AS send, COALESCE(SUM(receive.vqty), 0) AS received FROM t1 LEFT JOIN t2 AS send on t1.id = send.VBRNCH LEFT JOIN t2 AS receive on t1.id = receive.VTOBRN GROUP BY t1.branch_name
Demo here