• hi, i'm new with sql server, i answered A and i got a "wrong answer". The thing is, you are using a "@i is null" not a "@i = NULL". I've read the following article:

    http://msdn.microsoft.com/en-us/library/aa259229(SQL.80).aspx

    and in one part it says: "For a script to work as intended, regardless of the ANSI nulls database option or the setting of SET ANSI_NULLS, use IS NULL and IS NOT NULL in comparisons that may contain null values."

    so, the answer would be always A 'cos you're using a "is null" not a " = NULL"

    am i wrong? maybe i didn't understand the article.

    thanks!