Forum Replies Created

Viewing 15 posts - 2,731 through 2,745 (of 3,348 total)

  • RE: VARCHAR datatype

    A good question about a common misunderstanding. The number of times when a problem posted to usenet or forums could be solved by simply adding the length to a varchar...

  • RE: Generating SubTotals using GROUPING

    Jeff Moden (7/18/2010)


    Hugo Kornelis (7/17/2010)


    Jeff Moden (7/16/2010)


    Nice job, Sunil. I especially liked the fact that you compared what some folks go through with multiple queries (in one form or...

  • RE: Generating SubTotals using GROUPING

    Jeff Moden (7/16/2010)


    Nice job, Sunil. I especially liked the fact that you compared what some folks go through with multiple queries (in one form or another) and the simplicity...

  • RE: ALTER

    Sankar Reddy (7/15/2010)


    [font="Courier New"]I am glad this QoD has helped people learn new things. The credit should directly go to Hugo Kornelis for his excellent feedback otherwise this would have...

  • RE: Generating SubTotals using GROUPING

    sree1119 (7/14/2010)


    What is the difference between "With Cube" and "Rollup"?

    If you use GROUP BY Product_Name,Scheme_Name WITH ROLLUP (sorry for using the deprecated syntax; I don't have a Books Online 2008...

  • RE: ALTER

    Carlo, you are missing an impportant point in your repro.

    The performance difference in the question is not caused by rebuilding or converting the table contents, but by rebuilding / converting...

  • RE: Are we in all these cities?

    ziangij (7/13/2010)


    was about to ask if there was any specific reason to mention SQL 2008...

    As far as I can see, there wasn't. Semicolonms in subqueries have never been and will...

  • RE: Split string using Tally Table

    michael.kaufmann (7/13/2010)


    jcrawf02 (7/2/2010)


    Not sure why this one is tripping folks up, if you just count the delimiters, you can see it will return 13 pieces?

    ...anyway...good question, I'm sure it's introduced...

  • RE: Are we in all these cities?

    Tom Garth (7/13/2010)


    I got it right for the wrong reason. I didn't notice the semi-colon, and since A. would not have been a complete answer, I chose C. which amounted...

  • RE: Generating SubTotals using GROUPING

    Good article, andd good addition by R.P.Rozema.

    Remember that WITH ROLLUP is deprecated as of SQL Server 2010. It has been replaced with GROUPING_SETS.

  • RE: Are we in all these cities?

    I got it wrong too. I was looking at the logic of the query and the subquery, not at all the fine punctuation details.

    Learned nothing from this question. This is...

  • RE: How long is a NULL?

    sukhendass (7/8/2010)


    SET CONCAT_NULL_YIELDS_NULL ON

    SELECT ISNULL('abcd'+NULL+1,'1234567890')

    if i add any numeric value then it gives->1234567890 why?

    The explanation posted by Arto is almost correct, but not entirely.

    The inner expression ('abcd'+NULL+1) is evaluated left...

  • RE: Table Variable :Doesn't care

    wware (7/7/2010)


    I must be missing something. In Hrvoje's example, I understand why there are no rows in #t but I don't understand why the 'A' row isn't in @t....

  • RE: Table Variable :Doesn't care

    UMG Developer (7/6/2010)


    Nice question, thanks!

    I'm a little surprised that so many people have gotten it correct so far, but that may be because of the copy, paste, F5 syndrome. 😉

    I...

  • RE: Split string using Tally Table

    ricky70rana (7/2/2010)


    Can someone explain me how the script given below is working ?

    Especially the CASE Statement

    The CASE expression (sorry about that, couldn't resist) -or rather the nested CASE expressions- are,...

Viewing 15 posts - 2,731 through 2,745 (of 3,348 total)