ผมแก้ไข เป็น
select lo.vn,lo.lab_name
from lab_app_head lh
left outer join lab_app_order_service lo on lo.lab_app_order_number=lh.lab_app_order_number
where lh.vn = '550913071429' and lh.nextdate="2012-09-24"
แล้วครับ คราวนี้ Lab ไม่ออกเลย
ChangeDBPipeLineLink1SQL('select lo.vn,lo.lab_name '+
'from lab_app_head lh '+
'left outer join lab_app_order_service lo on lo.lab_app_order_number=lh.lab_app_order_number '+
'where lh.vn = "'+DBPipeline['vn']+'" and lh.nextdate="'+DBPipeline['nextdate']+'"');