select d1.*,concat('(',d1.doctor_name,')') as doctorname,v1.*,o1.*,n1.billcode,n1.billnumber
from doctor_order_print d1
select d1.*,v1.*,o1.*,n1.billcode,n1.billnumber
from doctor_order_print d1
left outer join vn_stat v1 on v1.vn=d1.vn
left outer join ovst o1 on o1.vn=d1.vn
left outer join nondrugitems n1 on n1.icode=d1.icode
where d1.vn="470529131938" and d1.print_server="DOCTOR-1"