我最近增加了一個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
感謝您的幫助
微軟SQLSERVER 2008快遞,我得到我的結果,直到我加入刪除不等於1部分,當前刪除在所有記錄爲空 – AlexW 2013-05-08 16:28:47