ASP SQL How come I cannot query field for 'NULL' values

Posted on 2006-04-12
Last Modified: 2008-03-17
I have the following SQL query that returns no records. If I change the value of the where clause then data shows up fine,
I looked at the table and can see many records that contain a 'NULL' value in the field I am querying.

FROM         devsub
WHERE     (cmpbldlbl = 'null')

any ideas
Question by:tmurray22
    1 Comment
    LVL 52

    Accepted Solution

    The syntax for checking NULL in SQL is:

        SELECT *
        FROM devsub
        WHERE (cmpbldlbl IS NULL)

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
    I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
    Internet Business Fax to Email Made Easy - With eFax Corporate (, you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
    Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    19 Experts available now in Live!

    Get 1:1 Help Now