我有两个表:Employee 和 DealerSessions,它们基于 EmployeeID 链接。以下搜索查询不返回不同的 EmployeeID。有任何想法吗?
SELECT distinct e.EmployeeID, e.Name, e.Surname, ds.DealerSessionsID, ds.SessionID, ds.EmployeeID AS Expr1
FROM Employee AS e INNER JOIN
DealerSessions AS ds ON e.EmployeeID = ds.EmployeeID
WHERE (ds.SessionID = 154)