我有一個SQL查詢,並希望取回這組數據集:排除特定的記錄從SQL查詢
SELECT
Reference, DeliveryDate, SecondaryDate, PurchaseId,
ItemDescription, Status
FROM
PLAYBOOK
WHERE
(Supplier='PLAY') AND (Status = '0')
ORDER BY
DeliveryDate DESC;
但是我希望排除第一個查詢下方檢索到的數據集:
SELECT
Reference, DeliveryDate, SecondaryDate, PurchaseId,
ItemDescription, Status
FROM
PLAYBOOK
WHERE
(Supplier = 'PLAY') AND (Status = '0') AND (Tax = 'Yes')
AND (Problem = 'damaged');
是'Reference'唯一的關鍵? – morcen