Why doesn’t this pretty simple SQL statement work? I’m trying to get all Projects from Purchasing table where Program is P3233 and where Project doesn’t have ‘SW’ at the end. Any ideas?
SELECT Purchasing.ItemID, Purchasing.Project
FROM Purchasing
WHERE (Purchasing.Program='P3233') AND (Purchasing.Project<>'%SW')
SELECT Purchasing.ItemID, Purchasing.Project
FROM Purchasing
WHERE (Purchasing.Program='P3233') AND (Purchasing.Project<>'%SW')