I have written a query in Sql server 2008.
select select * from program
where program_description <> null
But,Result of above query is blank.
whereas the below query is showing me the desired result.
select * from program
where program_description is not null
Is there any difference between them…?
Yes, = and <> do not work with null.
You have to use IS NULL or IS NOT NULL