Forum Replies Created

Viewing 15 posts - 6,271 through 6,285 (of 7,608 total)

  • RE: SYNTAX Help please...

    Evil Kraig F (12/20/2013)


    ScottPletcher (12/20/2013)


    Admittedly the gain is much clearer when the clustering key is the ISNULLed column. So, let's just flip the clustering keys on your original table...

  • RE: SYNTAX Help please...

    Evil Kraig F (12/20/2013)


    ScottPletcher (12/20/2013)


    Admittedly the gain is much clearer when the clustering key is the ISNULLed column. So, let's just flip the clustering keys on your original table...

  • RE: SYNTAX Help please...

    Evil Kraig F (12/20/2013)But, I'd like to bring us back to the origination of this minor alteration in the direction of this topic, and that's SARGability and effeciency and if...

  • RE: SYNTAX Help please...

    Evil Kraig F (12/20/2013)

    ScottPletcher (12/20/2013)


    There could be great harm in it if either (1) SQL could have done seeks on both terms and produced the final output more efficiently than...

  • RE: SYNTAX Help please...

    Jeff Moden (12/20/2013)


    ScottPletcher (12/20/2013)


    Jeff Moden (12/20/2013)


    ScottPletcher (12/19/2013)


    I don't object to ISNULL() in the SELECT list, just in WHERE conditions. Since it shouldn't be used in WHERE, it's only consistent...

  • RE: SYNTAX Help please...

    Jeff Moden (12/20/2013)


    ScottPletcher (12/19/2013)


    I don't object to ISNULL() in the SELECT list, just in WHERE conditions. Since it shouldn't be used in WHERE, it's only consistent not to use...

  • RE: How to avoid KeyLookpu in Execution Plan of a Query ?

    Snargables (12/19/2013)


    I had to create an index that added all the columns in the include of the index. This was because i created a function that has to return all...

  • RE: How to avoid KeyLookpu in Execution Plan of a Query ?

    wolfkillj (12/19/2013)


    ScottPletcher (12/19/2013)


    Jeff Moden (12/18/2013)


    ScottPletcher (12/18/2013)


    If your lookups will most often be by column2, you need to cluster the table on column2, or an encoded version of it, rather than...

  • RE: need help on design of database for student registration system

    Sigerson (12/19/2013)


    Grant Fritchey (12/18/2013)


    I could, but won't, argue that identities are a crutch. Natural keys can work fine. I try not to worry too much about the key structure while...

  • RE: How to avoid KeyLookpu in Execution Plan of a Query ?

    Jeff Moden (12/18/2013)


    ScottPletcher (12/18/2013)


    If your lookups will most often be by column2, you need to cluster the table on column2, or an encoded version of it, rather than having a...

  • RE: SYNTAX Help please...

    I don't object to ISNULL() in the SELECT list, just in WHERE conditions. Since it shouldn't be used in WHERE, it's only consistent not to use it in IF...

  • RE: SYNTAX Help please...

    I'm truly curious now:

    Can anyone tell me:

    Where "IS NULL" can't be used in place of ISNULL()?

  • RE: SYNTAX Help please...

    Evil Kraig F (12/18/2013)


    Scott,

    I'm not sure how that's more or less obscure, but it's certainly easier for me to read. I work with a lot of 'iffy' data in...

  • RE: SYNTAX Help please...

    Lynn Pettis (12/18/2013)


    ScottPletcher (12/18/2013)


    Lynn Pettis (12/18/2013)


    Lynn Pettis (12/18/2013)


    Luis Cazares (12/18/2013)


    ScottPletcher (12/18/2013)


    Better to avoid ISNULL, since you should never use it in a WHERE clause. I also think that exactly...

  • RE: SYNTAX Help please...

    Lynn Pettis (12/18/2013)


    Lynn Pettis (12/18/2013)


    Luis Cazares (12/18/2013)


    ScottPletcher (12/18/2013)


    Better to avoid ISNULL, since you should never use it in a WHERE clause. I also think that exactly what's being tested...

Viewing 15 posts - 6,271 through 6,285 (of 7,608 total)