Forum Replies Created

Viewing 15 posts - 316 through 330 (of 938 total)

  • RE: Gotcha! SQL Aggregate Functions and NULL

    Thanks Jim. Not only do NULLs group together, but they are considered "not distinct" when performing set-based operations like UNION, EXCEPT, INTERSECT, and when retrieving DISTINCT rows: http://www.sqlservercentral.com/articles/Advanced+Querying/2829/%5B/url%5D.

  • RE: Four Rules for NULLs

    kaspencer (4/3/2008)


    That is a good question.

    Personally, when I design database schemas where some of the data has to be date-ranged (and lots of data items in most data models...

  • RE: Four Rules for NULLs

    dbishop (4/3/2008)


    So, when you boil all this down, how do you handle things like DateTerminated, DisconnectDate (specifically DATETIME datatypes) when the event has not occurred. You know that an employee...

  • RE: Try To Be More Inefficient

    Very Zen-like philosophy Steve 🙂

  • RE: Four Rules for NULLs

    Ian Crandell (4/1/2008)


    This is also my first time reading this and I completely concur. This makes NULLs much clearer.

    I have one question about the truth table (and this might...

  • RE: Four Rules for NULLs

    Jeff Moden (3/28/2008)


    Mike C (3/28/2008)


    I get a clustered index scan when I run your code. The optimizer expands it out to RowNum <> 1 AND RowNum <> 2 AND RowNum...

  • RE: Four Rules for NULLs

    Lars Huttar (3/28/2008)


    Mike C (3/28/2008)


    Would I be willing to concede that the statement "NULL is not equal to any other value, or other NULLs" is incorrect? Absolutely if the...

  • RE: Four Rules for NULLs

    Jim Russell (3/28/2008)


    Having just gone through 11 (enlightening) pages of this thread, I hope I just have not missed the answer to my question:

    Since nulls will group together in a...

  • RE: Four Rules for NULLs

    Jeff Moden (3/28/2008)


    Mike C (2/27/2006)


    Both of which, by the way, are non-SARGable in WHERE clauses...

    ??? :blink: Maybe I'm reading this wrong, but WHERE NOT IN most...

  • RE: Four Rules for NULLs

    Gregg Walker (3/28/2008)


    Very nice article Michael on a topic where the details really count.

    I had never heard of the COALESCE function before. We use Informix as our primary database...

  • RE: Four Rules for NULLs

    Bill Wimsatt (3/28/2008)


    Just another point of view. I live in an Oracle, DB2, SQL Server world. Here is a companion article on Oracle's forums which came out about the same...

  • RE: Four Rules for NULLs

    Lars Huttar (3/28/2008)


    Matt Miller (3/28/2008)


    Lars - the issue you seem to be hammering on stems from treating NULL as if it were a value. NULL is technically not a...

  • RE: Four Rules for NULLs

    Would I be willing to concede that the statement "NULL is not equal to any other value, or other NULLs" is incorrect? Absolutely if the opposite can be demonstrated:...

  • RE: Four Rules for NULLs

    Lars Huttar (3/28/2008)


    Thanks for a very informative and thought-provoking article. Shows me I still have lots to learn about SQL.

    I have a point of unclarity or inaccuracy to pound on...

  • RE: Four Rules for NULLs

    Matt Miller (3/28/2008)


    Mike C (3/28/2008)


    I'd agree that this is probably a common usage, and as long as you're comfortable with using NULL to represent multiple states that might be adequate....

Viewing 15 posts - 316 through 330 (of 938 total)