Microsoft
Software
Hardware
Network
Question : SQL 2005 SELECT Statement "NOT CONTAINS 'cat'"
Here's the SQL statement I'm trying to execute!
SELECT DISTINCT merchantCategory
FROM dbo.Items
WHERE NOT CONTAINS 'cat'
In other words, I want it to cough up all the unique results for merchantCategory that don't contain the keyword 'cat'. I know the syntax is wrong somewhere around 'cat'; I'm just not sure what it is. Please help, Thanks, Chris.
Answer : SQL 2005 SELECT Statement "NOT CONTAINS 'cat'"
SELECT DISTINCT merchantCategory
FROM dbo.Items
WHERE merchantCategory NOT LIKE '%cat%'
Random Solutions
Remotely add domain admins to local admins
SqlServer really slow with big table?
Error during initial Ruby on Rails db rake
Messenger Email Inbox link after SP2
How to clean up this DCs SYSVOL FRS Member Object after demoting a DC
Generic Host Process for Win32 Services Problem (not virus)
Microsoft, NTFS Permissions, Windows 2003 R2, PowerShell, recursive search for folder, not file, ACLs on 200,000 folders
jquery and php
Get client computer name or client user name
custom rollup