Forum Replies Created

Viewing 15 posts - 1 through 15 (of 27 total)

  • RE: Temporary table in a batch

    (slightly off topic)

    obilleneni (2/10/2014)


    yes Begin is missing after as

    You're the second one to post this. I too noticed the END at the end of the script but no BEGIN at...

  • RE: Merge

    davoscollective (2/14/2013)


    I think you've proven how dangerous it is.

    The QoTD shows that when using NOT MATCHED that the src.RowNo =1 in the 'on clause' is not evaluated or at...

  • RE: Merge

    okbangas (2/14/2013)


    My explanation might not be 100% accurate, but this is indeed the documentation I found when I ran into the issue demonstrated in the question. That it indeed may...

  • RE: Merge

    As Tom said,

    the explanation would have been better if it had pointed out that filters like this can be placed in the when matche/not matched conditions.

    However, no one has...

  • RE: Data Page Allocations

    I answered correctly, but for the wrong reason. I'm well aware that when deleting rows SQL Server may internally mark the row as deleted and then come back and clean...

  • RE: Nanoseconds

    If you ever did need to do this and you are uncomfortable depending on the binary format and the complex SELECT in option 4 scares you (it does me). Here...

  • RE: "Question of the Day" is about:

    As some others have commented, I use it as a quiz and answer based on what I already know without doing any research. Despite that, the main value I get...

  • RE: Sorting triggered by data type

    As previous posters have commented, the issue is not "because in CASE statements all possibilites are being evaluated" but because the CASE expression must return a single data type so...

  • RE: XML

    For those that are having trouble understanding the "Book[Price < 4 ]" component, here is a bit of an explanation.

    If you look at the SELECT statement, you'll notice that there...

  • RE: B-tree

    cengland0 (9/30/2009)


    I actually agree with your analogy but I still believe this question should be thrown out.

    I agree that is is a very poor question. I was only arguing that...

  • RE: B-tree

    A B-tree could only be confused with a binary tree if it is binary with each node having at most 2 children. Wikipedia states this clearly, "a binary tree is...

  • RE: Query

    Questions like this would be unacceptable in the context of a standardized test such as a certification exam. But I think it OK for the QOD because whether you get...

  • RE: PIVOT working incorrectly?

    The PIVOT statement can be useful at times, but it is handy to know that anything that can be done with a PIVOT statement can be converted to an equivalent...

  • RE: User Defined Function Execution

    Matt Miller (2/14/2008)


    Except that rule doesn't work in this case:

    select getdate() from sys.all_columns

    We all know that getdate() is non-deterministic. But still - you will find that you get a...

  • RE: User Defined Function Execution

    Matt Miller (2/14/2008)


    Matt Marston (2/13/2008)


    -- This will only call the function once

    SELECT * FROM sysobjects WHERE [id] <= dbo.fnDateAdd(object_id('dbo.fnDateAdd'))

    -- This will call the function for every row in sysobjects.

    SELECT...

Viewing 15 posts - 1 through 15 (of 27 total)