BMS-HOSxP Community

HOSxP => นอกเรื่อง => ข้อความที่เริ่มโดย: golf_win ที่ กันยายน 12, 2008, 08:25:44 AM

หัวข้อ: ฝากให้พี่บอย รพ.ด่านฯ ครับ
เริ่มหัวข้อโดย: golf_win ที่ กันยายน 12, 2008, 08:25:44 AM
ตารางวัคซีนที่ขอครับ :D :D
หัวข้อ: Re: ฝากให้พี่บอย รพ.ด่านฯ ครับ
เริ่มหัวข้อโดย: golf_win ที่ กันยายน 15, 2008, 11:34:13 AM
select distinct b.vstdate,b.cid,b.age_y,b.pdx,b.dx0,c.name from opitemrece a
left outer join vn_stat b on b.hn=a.hn
left outer join nondrugitems c on c.icode=a.icode
where b.vstdate between '2008-06-01'and'2008-06-30'
and a.income in ('12','13','14','15')
หัวข้อ: Re: ฝากให้พี่บอย รพ.ด่านฯ ครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 15, 2008, 14:42:13 PM
select concat(fname,"  ",lname) as ptname,
count(concat(fname,lname)) as name_count
from patient
group by fname,lname
having count(concat(fname,lname))>1
order by name_count desc
หัวข้อ: Re: ฝากให้พี่บอย รพ.ด่านฯ ครับ
เริ่มหัวข้อโดย: golf_win ที่ กันยายน 15, 2008, 20:10:16 PM
ลองดูคำสั่งจากกระทู้ของพี่ขวดครับ
http://hosxp.net/index.php?option=com_smf&Itemid=28&topic=6534.0

 ;D ;D ทดลองแล้วสุดยอดครับ ;D ;D
หัวข้อ: Re: ฝากให้พี่บอย รพ.ด่านฯ ครับ
เริ่มหัวข้อโดย: มนตรี บอยรักยุ้ยคนเดียว ที่ กันยายน 17, 2008, 08:36:41 AM
CUSTOM-รายงานผู้ป่วยที่มีชื่อ - นามสกุล ซ้ำ
โดยให้ออก hn , ชื่อพ่อ , ชื่อแม่ , cid
ต้องขอบใจน้อง golf_win และ พี่ขวดครับ
select p.cid, p.hn,concat(p.fname,"  ",p.lname) as ptname,
p.birthday, p.fathername, p.mathername
from patient p, patient p2
where p.fname = p2.fname
and p.lname = p2.lname
and p.hn <> p2.hn
group by p.hn
order by ptname ,p.hn desc
หัวข้อ: Re: ฝากให้พี่บอย รพ.ด่านฯ ครับ
เริ่มหัวข้อโดย: yord ที่ กันยายน 17, 2008, 09:56:12 AM
ขอบคุณครับ ขอมาเก็บเกี่ยวด้วยคนครับ ;D