crystaldev1
Programmer
Hello. I am using Sql Server 2005 and would like to run the following statement but it's giving me few errors:
SELECT ...
FROM ...
WHERE (if TABLE.FIELD IS NOT NULL then TABLE.bPRIMARY = 'True'
else '')
So I'm having a problem with the where statement. I would like to use the IS NULL or IS NOT NULL in IF statement if possible. Thanks.
SELECT ...
FROM ...
WHERE (if TABLE.FIELD IS NOT NULL then TABLE.bPRIMARY = 'True'
else '')
So I'm having a problem with the where statement. I would like to use the IS NULL or IS NOT NULL in IF statement if possible. Thanks.