Forum Replies Created

Viewing 15 posts - 31 through 45 (of 54 total)

  • RE: Fun with IDENTITY - Part II

    Didn't notice it was a table variable! Gah! 🙂

  • RE: What will this return?

    Kenneth J. Moore (5/24/2010)


    I really just guessed after about 30 seconds of trying to follow the logic. Only off by 1.0000!

    Yeah that was me too. I looked at the date...

  • RE: get rows from joins which doesn't match

    It should be added at this point that ColdCoffee's solutions produce the set you wish to exclude (i.e. those that ARE in one of those tables) whereas mine is intended...

  • RE: get rows from joins which doesn't match

    sachinrshetty (5/12/2010)


    FROM EIS_PERSONAL EP LEFT JOIN EIS_CONTACTS EC ON EP.EMPLOYEE_ID = EC.EMPLOYEE_ID

    LEFT JOIN EIS_COMPANY ECM ON EP.EMPLOYEE_ID = ECM.EMPLOYEE_ID

    LEFT JOIN MASTER_BUSINESSUNIT MB ON ECM.BUSINESSUNIT_ID = MB.BUSINESSUNIT_ID

    RIGHT JOIN...

  • RE: Replication

    I do find it quite funny that though the question asks 'which edition of SQL Server 2008...' at least 30 people think the correct edition of SQL2008 is 'Sql Server...

  • RE: SQL 2K5 - Table-Valued Parameters

    Lynn Pettis (1/15/2010)

    When taking a test, particularly a multiple choice (multiple guess, if you prefer) don't you read the entire question and the answers before actually answering the question?

    I do,...

  • RE: SQL 2K5 - Table-Valued Parameters

    Lynn Pettis (1/15/2010)

    declare @TestTab table (TableID int, TableData varchar(32));

    set @TestTab = null;

    Result:

    Msg 137, Level 15, State 1, Line 2

    Must declare the scalar variable "@TestTab".

    Cheers - I could have just tested...

  • RE: SQL 2K5 - Table-Valued Parameters

    In fact, I'll go further (and you can't stop me ;o))

    Whenever I miss the intended point of one of these questions, it's usually because I've not paid attention to the...

  • RE: SQL 2K5 - Table-Valued Parameters

    To my mind, this question could/should have been moderated and edited to make it clearer.

    Even though I would have got it wrong had it actually been asking what I...

  • RE: Session Settings

    When ANSI_DEFAULTS is enabled (ON), this option enables the following ISO settings:...SET IMPLICIT_TRANSACTIONS. Msg 3903 The ROLLBACK TRANSACTION request has no corresponding BEGIN TRANSACTION.

    The explanation doesn't quite make sense...

  • RE: Variables, Nulls and Coalesce

    Carlo Romagnano (11/27/2009)


    Rob Goddard (11/27/2009)


    does the optimizer spot this and skip all the variable assignments and just do the last one?

    All the variable assignments are done.

    I spose this makes sense...

  • RE: Variables, Nulls and Coalesce

    dun (11/26/2009)


    This was a great instructional puzzle. I appreciate the corporate knowledge this forum represents. Thanks.

    Glad you enjoyed it 🙂 This example actually came to mind because of the amount...

  • RE: 4 Ways to Increase Your Salary (Using UPDATE)

    You say that salary * 115 / 100 and (salary * 115) / 100 return different results due to operator precedence - I can't see how operator precedence makes any...

  • RE: Variables, Nulls and Coalesce

    cengland0 (11/25/2009)

    Wouldn't you always get a row returned with the COUNT(*) aggregate? It might return 0 as the result but that still returns a row.

    Indeed - if you slot...

  • RE: Unknown NULLs

    Tom.Thomson (10/27/2009)


    Kevin Gill (8/14/2009)


    The main impact of this that I've come across is that if you have two variables and both are null, the only complete equality check with ANSI...

Viewing 15 posts - 31 through 45 (of 54 total)