Forum Replies Created

Viewing 15 posts - 1,366 through 1,380 (of 3,348 total)

  • RE: ISNULL vs COALESCE

    below86 (4/20/2015)


    COALESCE is attractive because (a) it is standard and (b) it has a neater syntax than ISNULL

    Both are reasons I started to try and use this in my code,...

  • RE: Using LAG

    TomThomson (4/18/2015)


    Hugo Kornelis (4/15/2015)


    But note that supplying an offset only produces the expected results if you can be sure that there is exactly one row per month in the sales...

  • RE: ISNULL vs COALESCE

    TomThomson (4/18/2015)


    In the crazy case (crazy because providing an untyped null as the second argument of ISNULL isn't exactly a sane thing to do) where both arguments are untyped nulls...

  • RE: ISNULL vs COALESCE

    The question is okay, but the explanation is absolutely incorrect.

    The difference between the two functions is caused by some pretty non-standard behaviour of the ISNULL function. (Which is documented, by...

  • RE: Using LAG

    RLilj33 (4/15/2015)


    On that note, I know that the ORDER BY clause is in general a performance killer. Can anyone speak to / point to a good article on /...

  • RE: Using LAG

    But note that supplying an offset only produces the expected results if you can be sure that there is exactly one row per month in the sales table. (Or, if...

  • RE: The CTE Problem

    TomThomson (4/9/2015)


    I've certainly had cases where having the namelist didn't work but adding an alias did

    I hope you can reconstruct those, since they would be very interesting to look at....

  • RE: The CTE Problem

    TomThomson (4/9/2015)


    Hugo Kornelis (4/9/2015)


    What Matthew said.

    I chose the answer that is marked as correct because that is the only one that really points out what is wrong - a column...

  • RE: The CTE Problem

    What Matthew said.

    I chose the answer that is marked as correct because that is the only one that really points out what is wrong - a column list by itself...

  • RE: Legal/illegal characters in table name

    This could have been a nice question about an interesting curiosity (though utterly useless, as nobody will ever use this in real life - right?).

    Unfortunately, the mishap with the schema...

  • RE: April 1 2015, a space oddity

    I copied the question text in Management Studio and executed it, and the result was an error message. If this only works on SQL Server 4.2, it should be indicated...

  • RE: CTE Syntax

    Eirikur Eiriksson (4/5/2015)


    Try out this keyboard sequence:

    😎

    1. CTRL + H

    2. [

    3. TAB

    4. ALT + A

    5. ENTER

    6. ]

    7....

  • RE: Foreign Key Fun

    TomThomson (3/19/2015)


    So far as dropping a database is concerned, there's an identical problem with dropping a table, so that part of the argument for not having cross-database foreign keys is...

  • RE: Foreign Key Fun

    TomThomson (3/17/2015)


    Is there a good reason for not supporting cross-database foreign key constraints? For some reaon or other I believe there isn't.

    How would you handle dropping a database, or...

  • RE: Columnstore Indexes

    Hany Helmy (3/15/2015)


    Gr8 question, thanx 🙂

    Did anyone tried this feature before? And is there any actual performance gained?

    Yes. See http://www.sqlservercentral.com/stairway/121631/%5B/url%5D

    (Bit of work life balance issues at the moment, hope to...

Viewing 15 posts - 1,366 through 1,380 (of 3,348 total)