lukasfrei
asked on
Simple SQL Query Problem
Ignore my last post.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
what is datatype of wcat
try
SELECT wid, wcat FROM watches WHERE wcat <> 'o' AND wid = 70073
or
SELECT wid, wcat FROM watches WHERE wcat not like 'o' AND wid = 70073
try
SELECT wid, wcat FROM watches WHERE wcat <> 'o' AND wid = 70073
or
SELECT wid, wcat FROM watches WHERE wcat not like 'o' AND wid = 70073
You should handle NULL properly, NULL is always a trouble maker;
Use the below sample, this should help you;
SELECT wid, wcat FROM watches WHERE ISNULL(wcat,'') != 'o' AND wid = 70073
OR
SELECT wid, wcat FROM watches WHERE ISNULL(wcat,'') <> 'o' AND wid = 70073
Use the below sample, this should help you;
SELECT wid, wcat FROM watches WHERE ISNULL(wcat,'') != 'o' AND wid = 70073
OR
SELECT wid, wcat FROM watches WHERE ISNULL(wcat,'') <> 'o' AND wid = 70073
ASKER
wow, thanks for help to all of you
Wcat IS NULL