BMS-HOSxP Community

HOSxP => การเขียน SQL Script => ข้อความที่เริ่มโดย: ปาล์ม ที่ พฤษภาคม 25, 2009, 16:05:21 PM

หัวข้อ: ทำโปรแกรมตรวจสอบการยื้มคืนล่วงหน้า7วันห้องบัตร
เริ่มหัวข้อโดย: ปาล์ม ที่ พฤษภาคม 25, 2009, 16:05:21 PM
select a.*,b.*,c.* ,d.*,date_add(a.rent_date,interval 7 day) as 'kkk' from ipdrent a,kskdepartment b,patient c, opduser d
 where a.rent_depcode=b.depcode and   a.rent_date='2009/02/05' and a.hn=c.hn   and d.loginname=a.rent_user   ช่วยดูให้หน่อยนะครับ ว่าจะใช้การเชื่อมต่อ inner join หรือ outer join ตรงใหน