 |
รบกวนสอบถามครับการ Left Join 3 ตารางใน SQL Server ได้แต่ใน Access ไม่ได้ครับ |
|
 |
|
|
 |
 |
|
ลองดูครับ
Code (SQL)
select d.item_id,d.item_name,d.item_cagename,d.item_suppname
from item_data d
Left join Item_Category c ON d.item_cageid=c.item_cageid
Left join item_supplier s ON d.item_suppid=s.item_suppid
|
 |
 |
 |
 |
Date :
2018-02-08 16:22:36 |
By :
mongkon.k |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
 |
|
|
 |
 |
|
ลองเช็ต ชื่อตัวแปรให้ชัดเจนอีกทีครับ สกดตรงไหนผิดหรือเปล่า
และ ลองใส่เต็มชุดคำสั่งดู เพิ่ม AS หน้าชื่อ alias name ด้วย
Code (SQL)
select d.item_id, d.item_name, c.item_cagename, s.item_suppname
from item_data as d
Left join Item_Category as c ON (d.item_cageid = c.item_cageid)
Left join item_supplier as s ON (d.item_suppid = s.item_suppid)
|
 |
 |
 |
 |
Date :
2018-02-12 16:08:28 |
By :
Chaidhanan |
|
 |
 |
 |
 |
|
|
 |
 |
|
 |
 |
|
|