troubleshooting Question

Select Query does not display record if field has null value and Raise Exception Stored Procedure

Avatar of dinesh_bali
dinesh_bali asked on
Microsoft SQL Server 2005
4 Comments1 Solution256 ViewsLast Modified:

I am working on MSSQL 2005

How can we use Raise Error in Stored Procedure

My query is not giving me record I did not understand the reason

In table t1 I have field status

In status filed there can be different different values like

or this field (status) field can be NULL

Now when I write select query

select * from t1 where status <> 'ERROR' -- (Not Equal to ERROR)

then this does not display records where status is null

What is the reason, what I have to do so that it works

Many Thanks
Join the community to see this answer!
Join our exclusive community to see this answer & millions of others.
Unlock 1 Answer and 4 Comments.
Join the Community
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 4 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros