SELECT [Users].[Name] AS 'ชื่อ', [Users].Surname AS 'นามสกุล', Dept.Department AS 'แผนก/สาขา', Position.Position AS 'ตำแหน่ง', [Users].Tel AS 'เบอร์โทร', [Users].Tex_Ext AS 'เบอร์ต่อ'
FROM [Users] INNER JOIN Dept ON [Users].ID_Dept = Dept.ID_Dept INNER JOIN Position ON [Users].ID_Position = Position.ID_Position
WHERE Position.Position Like'%การ%'
แบบนี่หาเจอค่ะ
SELECT [Users].[Name] AS 'ชื่อ', [Users].Surname AS 'นามสกุล', Dept.Department AS 'แผนก/สาขา', Position.Position AS 'ตำแหน่ง', [Users].Tel AS 'เบอร์โทร', ่ะ[Users].Tex_Ext AS 'เบอร์ต่อ'
FROM [Users] INNER JOIN Dept ON [Users].ID_Dept = Dept.ID_Dept INNER JOIN Position ON [Users].ID_Position = Position.ID_Position
WHERE Position.Position Like'%a%'
แต่แบบนี้ไม่เจอค่ะ
SELECT [Users].[Name] AS 'ชื่อ', [Users].Surname AS 'นามสกุล', Dept.Department AS 'แผนก/สาขา', Position.Position AS 'ตำแหน่ง', [Users].Tel AS 'เบอร์โทร', [Users].Tex_Ext AS 'เบอร์ต่อ'
FROM [Users] INNER JOIN Dept ON [Users].ID_Dept = Dept.ID_Dept INNER JOIN Position ON [Users].ID_Position = Position.ID_Position
WHERE Position.Position Like'%ฝ%'