Forum Replies Created

Viewing 15 posts - 361 through 375 (of 416 total)

  • RE: NULL Aggregates

    I think the use of the term "ignores" is not semantically correct (even if it used by BOL). "Excludes" is more accurate.

    1 + 2 + 3 + NULL...

  • RE: SSAS vs Views

    stevefromOZ (12/30/2014)


    In a way, some of the answer depends on the delivery mechanism you're going to use and the experience level of your user base.

    SSAS - much more than just...

  • RE: Date Parameters Defaults

    MMartin1 (12/31/2014)


    DonlSimpson (12/30/2014)


    Or build a calendar table and use it in a dataset.

    How would this be different? Would you have fields in the table to denote first Tuesday of the...

  • RE: Go Pats

    Pats, Pats, Pats.

    Brady's going to carve up secondaries like a holiday turkey.

  • RE: Date Parameters Defaults

    Or build a calendar table and use it in a dataset.

  • RE: NFL Tiebreaking procedures trivia

    7

    You have to go 3 - 3 in your division, as does the rest of the division and all teams in the division go 0 - 10 in the other...

  • RE: 15 Quick Short Interview Questions Useful When Hiring SQL Developers

    Jeff Moden (2/28/2013)


    I think the most important part of the article has been overlooked by those rightfully aghast at yet another seemingly “interview question” article. Here’s the quote. ...

  • RE: How to format unformated phone numbers Please...,

    So, fundamentally what is being said (or acknowledged) is that this is NOT a table of phone numbers. It is actually a bunchO'stuff table that may contain phone numbers....

  • RE: Calculating Last 5 Business Days and Next 5Days

    CELKO (12/19/2014)


    Build a calendar table with one column for the calendar data and other columns to show whatever your business needs in the way of temporal information. Do not try...

  • RE: Calculating Last 5 Business Days and Next 5Days

    jshuter (12/17/2014)


    I understand the need to use SQL when doing SQL but a little looping wont kill ya 🙂

    Um, yeah. It won't kill you to use a butter...

  • RE: Bit Casting

    Interesting that the text 'false' evaluates to 0. I would have guessed that any non-empty string would evaluate to 1.

  • RE: Better to store 0 or null in a column

    Eric M Russell (12/17/2014)


    DonlSimpson (12/17/2014)


    spaghettidba (12/16/2014)


    Use 0 if the value exists and it is 0.

    Use NULL if the value does not exist or is undefined.

    If you used 0 when NULL...

  • RE: Better to store 0 or null in a column

    spaghettidba (12/16/2014)


    Use 0 if the value exists and it is 0.

    Use NULL if the value does not exist or is undefined.

    If you used 0 when NULL was more appropriate, how...

  • RE: Divide by zero error encountered.

    MMartin1 (12/16/2014)


    NULLIF((EVT.VAL2), 0)

    Maybe I'm just missing something here, but how can the above EVER return a zero?

    It would not, but that is what the user wanted. That is to prevent...

  • RE: Divide by zero error encountered.

    SELECT

    EVT.VAL1/ISNULL(NULLIF(EVT.VAL2,0),1) AS ITEM_ID

    FROM @EVENT1 EVT

    WHERE EVT.NAME IN ('JOHN','PATRICK');

    I'd be really hesitant to default a "1" into a calculation like this....

Viewing 15 posts - 361 through 375 (of 416 total)