Forum Replies Created

Viewing 15 posts - 2,671 through 2,685 (of 3,348 total)

  • RE: Clustered indexes

    m.bouffard (8/25/2010)


    Hmm...

    "A clustered index determines the physical order of data in a table. A clustered index is analogous to a telephone directory, which arranges data by last name. Because the...

  • RE: Control Flow Tasks

    I had to laugh when I found out WHY I got this question wrong.

    I thought "auto-connect" referred to making a connection to a data source. Not to connecting a task...

  • RE: The Semantics of NULL in SQL Server 2008

    tim.stevens (8/24/2010)


    This is one of the best concise treatises on NULL I have seen. Your adminition about a well architected database design not allowing NULLs for any columns is...

  • RE: Round up or down IV

    hrvoje.piasevoli (8/24/2010)


    Hi all, played for a while with Hugo's example and ... look what I found :w00t:

    Thanks for confirming that this is indeed apparently fixed in SQL 2008.

    -- 2 doesn't...

  • RE: Round up or down IV

    Michael Poppers (8/24/2010)


    paul.knibbs (8/24/2010)


    Didn't know ROUND() could do this, but once I looked it up in Books Online it seemed fairly straightforward--I learned something today, which is always nice!

    Get ready...

  • RE: Round up or down IV

    paul.knibbs (8/24/2010)


    Hugo Kornelis (8/24/2010)

    Super! Thanks for testing and reporting back here.

    Obviously, this weird behaviour that appears to be exclusive to the ROUND() function has been fixed in SQL Server 2008.

    Is...

  • RE: Round up or down IV

    paul.knibbs (8/24/2010)


    Nope, just tested it on a SQL 2008 Express install and it came up with an arithmetic overflow as expected.

    Super! Thanks for testing and reporting back here.

    Obviously, this weird...

  • RE: The Semantics of NULL in SQL Server 2008

    Jeff Moden (8/24/2010)


    Oh jeez.... here we go with bloody semantics again. If data is missing or absent, what value is it, Hugo?

    It's not just semantics. This statement is the...

  • RE: Round up or down IV

    hrvoje.piasevoli (8/24/2010)


    Hugo Kornelis (8/24/2010)


    Here is an interesting experiment (works on every client):

    SELECT ROUND(789.98,-3) AS WeirdCol

    INTO WeirdTable;

    go

    EXEC sp_help 'WeirdTable';

    go

    UPDATE WeirdTable

    SET WeirdCol = WeirdCol - 0.001;

    go

    DROP TABLE WeirdTable;

    go

    Hugo what is the expected...

  • RE: The Semantics of NULL in SQL Server 2008

    martti.laiho (8/24/2010)


    This is an important topic, but the author unfortunately presents NULL as a 3-value logic value in both tables instead of UNKOWN. Joe Celko has presented this precisely...

  • RE: The Semantics of NULL in SQL Server 2008

    Alex-668179 (8/24/2010)


    Yes, I find that a lot of the confusion goes away by not calling NULL a "value" but seeing as a state (or state indicator).

    Agreed. I think that the...

  • RE: The Semantics of NULL in SQL Server 2008

    da-zero (8/24/2010)


    What I meant was that the author should've included the COUNT function in the article, since it behaves differently when you specify additional arguments.

    E.g. I would've liked examples of...

  • RE: The Semantics of NULL in SQL Server 2008

    paulm-771594 (8/24/2010)


    I would be interested to know what the impact of using NULL is on the storage space required for a Column. i.e. does a nullable nvarchar column save space...

  • RE: The Semantics of NULL in SQL Server 2008

    Carlo Romagnano (8/24/2010)


    One way to avoid worrying about NULLs is never to use them, always declaring columns as not allowing NULLs and designating default values for "empty" or "unknown". This...

  • RE: The Semantics of NULL in SQL Server 2008

    da-zero (8/24/2010)


    I would've liked a paragraph on the behaviour of NULL in COUNT(*) and COUNT(DISTINCT *).

    There's not much to say about that, as COUNT(*) does not care if values are...

Viewing 15 posts - 2,671 through 2,685 (of 3,348 total)