Forum Replies Created

Viewing 15 posts - 1,906 through 1,920 (of 3,348 total)

  • RE: Finding New Years Eve

    john.arnott (1/2/2013)


    Thanks, Hugo, for the correction. I like to think, however, that you'd agree that Michael V Jones's code above would be a bit more clear. Your two...

  • RE: Finding New Years Eve

    john.arnott (1/2/2013)


    Hugo,

    Just testing to see if we're reading carefully? πŸ˜‰

    Looks as though your option 2 is screwed up somehow, returning dates years off.

    SELECT dateadd(month, datediff(month, getdate(), '20110101'), '20101231');

    ........

  • RE: Round And Numaric

    Not very happy with this question.

    The first answer option is very clearly wrong - no idea where that 0.12 could possibly come from.

    The other two options are the same. Arithmetically,...

  • RE: Finding New Years Eve

    (deleted)

  • RE: Finding New Years Eve

    Kevin Gill (1/1/2013)


    Just to be picky, it actually won't work after the 28th Jan due to that dateadd of a month in there πŸ˜›

    And to be even more picky, all...

  • RE: UNIQUE constraint

    SanDroid (12/27/2012)


    Hugo Kornelis (12/21/2012)


    My point is also not that I want the current implementation of UNIQUE removed from the product.

    My point is that IF a feature is implemented that has...

  • RE: Divide by zero

    SanDroid (12/27/2012)


    :ermm: You do not know the difference between creating a new TSQL batch and a control flow function? πŸ˜›

    I don't even know what a control flow function is. All...

  • RE: Data Page Allocations

    rals (12/27/2012)


    Nice question.

    From this we know that deleting records from the heap will not deallocate pages. Shriking will help to deallocate the pages from the heap ?

    I know...

  • RE: Outer join with condition

    ronmoses (12/27/2012)


    Yeah, I'm gonna need someone to draw me a picture for this one. πŸ˜‰

    ron

    I'm bad at pictures, so how about a step-by-step description of the query evaluation?

    (Note that this...

  • RE: What's the best way to count?

    gkganeshbe (12/26/2012)


    Is there any performance difference in the below given three queries.

    Note: Col1 is NOT NULL column

    SELECT COUNT(*) FROM Sales.SalesOrderDetail;

    SELECT COUNT(Col1) FROM Sales.SalesOrderDetail;

    SELECT COUNT(0) FROM Sales.SalesOrderDetail;

    Not really. The second one...

  • RE: Data Page Allocations

    L' Eomot InversΓ© (12/26/2012)


    Here's where I get confused: Can Hugo's ";)" be a misprint for something else?

    Nope!

    When I started typing my first reaction in this topic, I was wondering whether...

  • RE: Data Page Allocations

    Sean Lange (12/26/2012)


    Hugo Kornelis (12/26/2012)


    Basics? That's not how I would describe it! :w00t:

    Thanks for a good question, Sean. I think I once read or heard that after deleting all rows...

  • RE: Divide by zero

    SanDroid (12/26/2012)


    Hugo, Great question that realy made me think.

    However part of your explination seems incomplete or missleading.

    If statements and other control flow language create new batches, and that...

  • RE: Data Page Allocations

    Basics? That's not how I would describe it! :w00t:

    Thanks for a good question, Sean. I think I once read or heard that after deleting all rows from a page, a...

  • RE: Santa's List

    Thanks for the question, Steve.

    And a very happy Christmas to everyone at SQLServerCentral.com

Viewing 15 posts - 1,906 through 1,920 (of 3,348 total)