ลูกพี่รายงานนี้ถ้าเราไม้เอาdiag n180 กับ z00 เขียนให้หน่อยครับลูกพี่ขอบคุณครับ
DateTime : 2011-01-11 20:00:02
Post By : weerawat49
IP Address : 180.183.241.120
select a.pdx,count(a.pdx) as pdx_count ,i.name as icdname
from vn_stat a
left outer join icd101 i on i.code=a.main_pdx
where a.vstdate between '2010-12-01' and '2010-12-31'
and a.pdx<>'' and a.pdx is not null
group by a.pdx,i.name
order by pdx_count desc
limit 20
Message !!
หากต้องการตอบกระทู้ Webboard กรุณาเข้าใช้ระบบก่อนนะค่ะ..
กระทู้ตอบกลับ
ลองดูตามนี้ครับหาไม่ต้องการตัวก็ใส่เพิ่มได้เรื่อยๆครับ
select a.pdx,count(a.pdx) as pdx_count ,i.name as icdname
from vn_stat a
left outer join icd101 i on i.code=a.main_pdx
where a.vstdate between '2010-12-01' and '2010-12-31'
and a.pdx<>'' and a.pdx is not null
and a.pdx not in ('n180','Z00')
group by a.pdx,i.name
order by pdx_count desc
limit 20
Post โดย : chinaga Date: 2011-01-11 20:15:00 ip: 113.53.239.85
ขอบคุณมากครับพี่ชิน นึกว่าจะกลับมาไม่ถึงเมืองสุรินทร์วันขึ้นบ้านใหม่พี่เหวย555+
Post โดย : weerawat49 Date: 2011-01-11 20:21:37 ip: 180.183.241.120