select mapping.opr_id,materialDesc=brm.description,info.consumption
from base_bom_info info
left join base_bom_mapping mapping on info.bom_id=mapping.bom_id and info.consumption != 1
left join base_raw_material brm on info.material_code=brm.raw_code
where mapping.opr_id in('P001201020060500513_Z5YS0022A')
select mapping.opr_id,materialDesc=brm.description,info.consumption
from base_bom_info info
left join base_raw_material brm on info.material_code=brm.raw_code and info.consumption != 1
left join base_bom_mapping mapping on info.bom_id=mapping.bom_id
where mapping.opr_id in('P001201020060500513_Z5YS0022A')