แสดงกระทู้

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Topics - sine

หน้า: [1]
1
Report Exchange / สอบถามคำสั่งsqlครับ
« เมื่อ: มกราคม 21, 2013, 10:44:15 AM »
select ot.operation_time_type_name, em.emergency_name, p.hn, p.fname from operation_detail op
left outer join operation_list ol on ol.operation_id = op.operation_id
left outer join patient p on p.hn = ol.hn
left outer join operation_time_type ot on  ot.operation_time_type_id  = ol.operation_time_type_id
left outer join operation_emergency em on  em.emergency_id  = ol.emergency_id
where begin_datetime between '2012-05-01 08:30:00' and '2012-05-31 16:30:00'
***********
ถ้าผมอยากแยกเวลาด้วยครับตั้งแต่ 08:00:00 ถึง 16:00:00 ต้องใช้คำสั่งอยากไรครับ ขอบคุณครับ

หน้า: [1]