แสดงกระทู้

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 - QryData

หน้า: [1]
1
Report Exchange / ต่อ string โดยใช้คำสั่ง Concat ข้อมูลไม่แสดง
« เมื่อ: พฤศจิกายน 02, 2011, 13:19:37 PM »
คือต้องการทำรายงาน คนมารับบริการ  จำนวนคน/จำนวนครั้ง  แล้วต่อ string โดยใช้ Concat และมีเครื่องหมาย "/" ข้อมูลไม่แสดงค่ะ  ถ้าไม่มีเครื่อง หมาย "/" ก็แสดงได้ ไม่ทราบว่าต้องทำอย่างไรค่ะ

คิวรี่ค่ะ

Value :=GetSQLIntegerData('SELECT CONCAT(COUNT(DISTINCT hn),'/' ,COUNT(vn)) AS cc '+
 'FROM vn_stat ' +
 'WHERE hospmain=10720 and hospsub=07065 ' +
 'and hospcode = 10720 ' +
 'and vstdate between "' + d1 + '" and "' + d2 + '" ');

รบกวนช่วยตอบด้วยนะค่ะ

หน้า: [1]