Forum Replies Created

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

  • Reply To: Summer Break

    Don't forget, for half the globe (if not half of your subscribers!), it's currently the middle of winter 🙂

  • RE: Duplicates

    jan.heimdal (2/4/2015)


    This seems simpler to me:

    DELETE --or SELECT *

    FROM #DuplicateRow

    WHERE JobTitle = 'Editor' and datemodified < (SELECT MAX(datemodified) FROM #DuplicateRow WHERE JobTitle = 'Editor')

    This returns all but the...

  • RE: Bit Casting

    Arrggghhh....

    Got lost in my 1's and 0's and pressed the wrong option. Knew the right answer, just picked the wrong 'un.

  • RE: Execution Plan reuse

    Nice question Steve, thanks.

    Wasn't sure between the large number of inserts & the index changes, so decided to do some research first, and then got it right.

    Logic told me that...

  • RE: NO COUNT

    Miles Neale (12/11/2014)


    Bobby Russell (12/11/2014)


    I'm to the point now if Shiva N posts the question, I'm skipping it.

    Never pass up an opportunity to learn, even if it is tricky or...

  • RE: Simple arithmetic

    Thanks Tom.

    Enlightening posts, as always.

  • RE: Simple arithmetic

    TomThomson (12/10/2014)


    Xavon (12/10/2014)


    paul.knibbs (12/10/2014)


    Emil Bialobrzeski (12/10/2014)


    i saw lots of people on social sites having problems with:

    1+1+1+1+1+1+1+1+1+1+1+1x0+1 = ?

    most of the answers was 1. So saying Simple may apply differently to...

  • RE: Thanksgiving 2014

    Well, I learnt something today. When Thanksgiving is 🙂

    Seeing as the question needed two answers, and only two queries gave the same result, the answer was obvious. So no need...

  • RE: IN or OR

    SQLRNNR (11/3/2014)


    ronmoses (11/3/2014)


    Yes, I agree this seemed fairly obvious, but the fact that there are three correct answers (the first three options are all true) and I'm only permitted to...

  • RE: In-line variable assignment 2

    Nice little question, and great explanation. Thanks.

  • RE: Table Variable

    Sergiy (4/30/2013)


    antony-688446 (4/30/2013)


    For those struggling with the difference between 'False' and 'Unknown', and how the IF statement works, consider what happens if we change the example code a little bit...

  • RE: Table Variable

    For those struggling with the difference between 'False' and 'Unknown', and how the IF statement works, consider what happens if we change the example code a little bit (I think...

  • RE: Aggregates

    But if you look here http://msdn.microsoft.com/en-us/library/ms173454(v=sql.100).aspx (aggregate functions in SQL 2008) GROUPING_ID is not listed.

    But Here http://msdn.microsoft.com/en-us/library/ms173454(v=sql.105).aspx (SQL 2008R2) its is...

    Did MS re-classify GROUPING_ID as an aggregate function between 2008...

  • RE: Aggregates

    Stewart "Arturius" Campbell (12/5/2012)


    Interesting question, thanks.

    just bear in mind that GROUPING_ID only came into effect with SQL2008. Those still using 2005 will not have knowledge hereof...

    Being pedantic, GROUPING_ID came in...

  • RE: The Danger of Custom Software

    The biggest problem with using off-the-shelf software is you have no control over how it works, or fixing the bugs in it. The problem escalates as the software provider gets...

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