Forum Replies Created

Viewing 15 posts - 61 through 75 (of 452 total)

  • RE: Comparing Execution Plans

    Koen Verbeeck (12/14/2016)


    sknox (12/14/2016)


    Koen Verbeeck (12/14/2016)


    sknox (12/14/2016)


    The question is written as "How can you identify any differences?"

    However, 3 of the four answers fit that question as written.

    The question should...

  • RE: Comparing Execution Plans

    Koen Verbeeck (12/14/2016)


    sknox (12/14/2016)


    The question is written as "How can you identify any differences?"

    However, 3 of the four answers fit that question as written.

    The question should have been "How...

  • RE: Comparing Execution Plans

    The question is written as "How can you identify any differences?"

    However, 3 of the four answers fit that question as written.

    The question should have been "How can you most...

  • RE: Thanksgiving

    Mikael Eriksson SE (11/24/2016)


    Which of these queries will work consistently on every Thanksgiving?

    Actually none since limitations of the data type but number 2 works for more years then number 1...

  • RE: Performing union data with null values

    Toreador (11/15/2016)


    The answer is right, but the explanation is wrong, as it says the answer is 0,1,2,NULL,NULL

    If that had been one of the options I might have got it wrong...

  • RE: Executing an R Script

    You can use source in the text of your R script to bring in a file. Cf http://stackoverflow.com/questions/3502925/include-files-r

  • RE: OUTPUT Targets

    Stewart "Arturius" Campbell (9/30/2016)


    Nice, easy question to end the week on, thanks Steve.

    Just a point of confusion in the options:

    a table variable, a table in the table, or a temp...

  • RE: Comparing with NULL

    Steve Jones - SSC Editor (9/26/2016)


    Updated the question to say ANSI_NULLS set to ON.

    Note, at some point, this will be the only setting allowed.

    Thanks, Steve! While I think it's...

  • RE: Bones of SQL – Grouping By User-Defined Calendar Periods

    Of course, for user-defined periods which are used often, the best thing to do is to add these calculations into the generation of your calendar table ( http://qa.sqlservercentral.com/articles/calendar/145206/ )...

  • RE: T-SQL: EOMONTH

    George Vobr (9/19/2016)


    Practical for use is that the second parameter may have also a negative value,

    thanks for this seemingly simple question Nagaraj. 🙂

    Was going to post this. For example, one...

  • RE: Small rounding

    TomThomson (9/9/2016)


    Since we are not permitted by MS SQL Server to write the literal as .7 instead of as 0.7, we are forced to write at least one digit...

  • RE: Small rounding

    Good question, but the explanation is incomplete. Precision is only half of the story, the other being scale.

    1.0 can fit in a number with precision of 1, if the scale...

  • RE: Will It Compress?

    Carlo Romagnano (9/2/2016)


    SPARSE is not a datatype but a property.

    So, the correct answer is wrong!

    SELECT * FROM sys.types

    WHERE is_user_defined='0'

    THIS.

    I understand why Andy didn't specify SPARSE, as that...

  • RE: Union Date/Time Data Types

    The correct answer is "it depends."

    MOST of the time you'll get two rows as explained in the answer.

    HOWEVER, each GETDATE() within each SELECT is evaluated separately. When the separate evaluations...

  • RE: What is the impact of setting SET ANSI_WARNINGS OFF?

    roger.plowman (8/23/2016)


    sknox (8/23/2016)


    roger.plowman (8/23/2016)


    ANSI_WARNINGS are basically concerned with Null values (ignoring the divide by 0 issue which is really a seperate one). I believe the better solution is never allowing...

Viewing 15 posts - 61 through 75 (of 452 total)