ใช้คำสั่งนี้ลองดูนะ
select concat(p.pname,p.fname," ",p.lname) as name,p.hn,p.cid,concat(p.addrpart," ",t.full_name) as address from patient p left outer join vn_stat v on p.hn = v.hn left outer join
thaiaddress t on p.tmbpart = t.tmbpart and p.amppart = t.amppart and p.chwpart = t.chwpart where v.age_y between 30 and 35 and p.chwpart = 45 and p.amppart = 05 and p.tmbpart = 02
and p.sex = 2
ตามที่ขอนะ
ได้ไม่ได้ตอบด้วย