คือผมต้องการดึงข้อมูลผู้ป่วยตรวจ lab microallbumine ที่มีผลเป็น positive และได้รับ Enalapril
select distinct(ov.hn),op.vn,op.hn,op.icode , ld.lab_order_number,lh.lab_order_number,ld.lab_items_code ,lh.order_date ,ld.lab_order_result ,concat(pt.pname,pt.fname,' ',pt.lname)as name ,di.name
from vn_stat ov
left outer join opitemrece op on op.vn = ov.vn
left outer join patient pt on pt.hn = ov.hn
left outer join lab_head lh on lh.hn = ov.hn
left outer join lab_order ld on ld.lab_order_number = lh.lab_order_number
left outer join drugitems di on di.icode = op.icode
where op.icode in (1000122,1460151)
and ld.lab_items_code = '3087'
and ld.lab_order_result not like 'ne%' and ov.vstdate between '2009-01-01' and '2009-01-31'
group by ov.hn
order by ov.hn