select pt .PT_Code,pt .PT_YearID,pt .TST_Code ,pt .CT_Code,lc .LocateDesc
from tplaoftrn as pt INNER JOIN tlocate as lc ON pt.PT_Start = lc.LocateID where pt.PT_Start = lc.LocateID
select pt .PT_Code,pt .PT_YearID,pt .TST_Code ,pt .CT_Code,lc .LocateDesc
from tplaoftrn as pt INNER JOIN tlocate as lc ON pt.PT_Start = lc.LocateID and pt.PT_End = lc.LocateID where pt.PT_Start = lc.LocateID and pt.PT_End = lc.LocateID
ดึงข้อมูลไม่ขึ้นค่ะ รบกวนผู้รู้ด้วยค่ะ
Tag : .NET, Ms SQL Server 2008, Web (ASP.NET), VB.NET