SQL Panel

  • I have a database table that for the email field has NULL values. I want to be able to select all the records in the email Field that has null values so i can convert them to another field. How do i write this Query in SQL 2000. I keep getting error messages. Please help.

  • Select * from Table where email field is null.

    What kinds of errors? even if you did it with = null, it wouldn't give errors. How are you going about it now?

  • I am currently doing it like this

    SELECT *

    FROM Members

    WHERE (EMAIL = NULL)

    Well i am not getting an error now. But it just displays one record with nothing in it. But if i open the database i see the <NULL> values under the email field for lots of users. I don't understand it.

  • SELECT *

    FROM Members

    WHERE (EMAIL is NULL)

  • Thanks Tad that worked.

  • That was what I suggested.

    The evaluation of null is performed differently in 2000. Its more in line with VB now. For years Null was treated as a value, while in fact it is a state. Now it is being treated as a state, not a value. Someone just posted an article on exactly this a few days ago. You might look for it.

  • Thanks Scorpian 66. I appreciate your help allot. I'll look for that article.

Viewing 7 posts - 1 through 6 (of 6 total)

You must be logged in to reply to this topic. Login to reply