awesome....thanks, I wrote this query. It works too.select m.model_brand, m.model_number,m.purchased_qty, m.available_qty, isnull(lost.lost_qty,0) as lost_qty from mobile_master m full outer join (select t.model_number, t.model_brand, l.qty as lost_qty from telephone_alottment t, lost_telephones l where l.lost_by = t.sr_no) as loston lost.model_number = m.model_number and lost.model_brand = m.model_brandorder by model_brand