我最近Deleted
在我的表中添加了一个列,然后想添加一个额外的 where 子句,但现在我没有得到任何结果(它在我添加deleted
列之前返回了结果)
SELECT
tblEquipment.*, tblUsers.*
FROM
tblEquipment
INNER JOIN
tblUsers ON tblEquipment.UserID = tblUsers.ID
WHERE
(UPPER(tblUsers.Dept) = 'ASPIRE' OR UPPER(tblUsers.Dept) = 'DEVELOPMENT')
AND (AssetType = 'WORKSTATION' OR AssetType = 'LAPTOP')
AND (tblEquipment.Deleted != 1)
ORDER BY
Username
谢谢你的帮助