Forum Replies Created

Viewing 15 posts - 16 through 30 (of 82 total)

  • RE: T-SQL correlated queries

    Jonathan AC Roberts - Thursday, March 14, 2019 5:48 AM

    Another reason why you should always prefix the column names with the table...

  • RE: The Funny Stored Procedure Name

    latkinson - Friday, February 8, 2019 6:06 AM

    The description "version number" vs "an optional integer that is used to group procedures of the...

  • RE: A Tiny Trauma

    Would the overhead have been too much to go with case when ResendLimit>ResendCount then ResendLimit – ResendCount else 0 end as RetriesLeft,
    My own tendency is to go...

  • RE: STUFFing strings

    As an aside, if you want every letter in there: 'the quick brown fox jumps over the lazy dog'

  • RE: The Nonsensical Count

    If I alter the query to ">2" instead, I get a result of 3, and an error if I change that HAVING to a WHERE. It would appear that BOL is incorrect...

  • RE: Temporary tables SCOPE

    Heh, I was so confident of my answer being "obviously" correct that I expected to find out that I was wrong about how EXECUTE() functions.

  • RE: The Floor

    Steve Jones - SSC Editor - Monday, July 31, 2017 9:33 AM

    Christoph Muthmann - Monday, July 31,...

  • RE: The Floor

    WITH mycte (a, n)

  • RE: Expressions

    Hugo Kornelis (8/8/2013)


    srienstr (8/8/2013)


    select checksum('00000000-0000-0000-0000-000000000000')

    -1448389036

    You're calculating the checksum of a value that just happens to loook remarkably like a uniqueidentifier value - but is just a plain old varchar.

    select checksum(cast('00000000-0000-0000-0000-000000000000'...

  • RE: Expressions

    ok181ko (8/8/2013)


    paul.knibbs (8/8/2013)


    ok181ko (8/8/2013)


    How about

    newid() = '00000000-0000-0000-0000-000000000000'

    The question is not correct. Answer is 0 (zero).

    The question asked which of the answers were possible outputs of the statement. It never stated...

  • RE: Could You Live Like a DBA?

    I could think of a few indexes that might be worth adding to the pantry. Though perhaps my wife would be happier if we continue with partitioning on the item_type...

  • RE: Between Clause

    L' Eomot Inversé (6/27/2013)


    kapil_kk (6/27/2013)


    Danny Ocean (6/26/2013)


    I never used between for string operation. I also never seen this kind of condition in working scenario.

    :doze:

    Same here...

    I dont think there is any...

  • RE: Between Clause

    Working with health data, we have a lot of code ranges that we deal with for reporting from varchar fields. I have only very rarely seen between used incorrectly, but...

  • RE: Assigning categories to values 1

    honza.mf (5/17/2013)


    srienstr (5/17/2013)


    L' Eomot Inversé (5/17/2013)


    You are demonstrating a lack of historical knowledge here.

    SQL became "SQL" because someone other than IBM owned the rights to the original name the IBM...

Viewing 15 posts - 16 through 30 (of 82 total)