Forum Replies Created

Viewing 15 posts - 4,156 through 4,170 (of 5,504 total)

  • RE: Transform Data -- Sequential to 3 Groups of Columns

    It's kind of a PIVOT but this scenario is also sometimes referred to as CrossTab.

    To get the individual numbers grouped together it's better to use the PARTITON BY clause of...

  • RE: SQL Query Question

    lmu92 (2/27/2010)


    There seems to be something wrong in your sample data:

    table dbo.TempUserTags has three entries for TagId=1 (C Sharp). (ID 1,7, and 17)

    Why do you expect C Sharp existence in...

  • RE: XML Parse Query

    @paul-2: Interesting approach!

    Which one out of the three solutions would you actually use on the given scenario (extended volume)?

    I'm not sure if the execution plan shows real figures on that...

  • RE: SQL Query Question

    jaspreetsingh8 (2/27/2010)


    This relationship refers to one to many. Tag created by one user also used by other multiple users.

    Actually all this is like twitter tags functionality.

    That doesn't answer my question.

    I...

  • RE: UNION a series of TOP statements

    Divya Agrawal (2/26/2010)


    I have written a post on DATEFIRT which can help you understand the usage of it..

    http://www.sqlservercentral.com/articles/DateFirst/69203/

    I did refer to your article a few posts back.

    But the subject Paul...

  • RE: Querying XML stored as NVARCHAR

    Paul White (2/27/2010)


    Not as easy as using the WITH_XMLNAMESPACES clause though!

    Click that link to see how to specify a default XML namespace from T-SQL. It's easier.

    Paul

    ... or look a...

  • RE: XML Parse Query

    Paul White (2/27/2010)


    ...

    Anyone interest in a FLWOR version?

    🙂

    Sure I am! It's "skills improvement" Saturday anyway! ;-):-D

  • RE: Pivot to 1 column

    Paul White (2/27/2010)


    Hey no worries! My apologies if my original post back there wasn't brilliantly worded - I was just adding a little 'shine' to your good solution, I...

  • RE: SQL Query Question

    There seems to be something wrong in your sample data:

    table dbo.TempUserTags has three entries for TagId=1 (C Sharp). (ID 1,7, and 17)

    Why do you expect C Sharp existence in all...

  • RE: Insert Triggers and Inserting using OPENXML

    Paul White (2/26/2010)


    DanielP (2/26/2010)


    ... does the Table's Insert Trigger still fire or is it treated like bulk-insert?

    Yes.

    LOL 😀

    @daniel-2: to rephrase Pauls answer: it depends.

    You need to be a little more...

  • RE: Problem in SQL query

    And befor simply copy and paste the stuff from that link please read and follow the first link in my signature on how to post sample data.

    Otherwise, you might get...

  • RE: SQL Query Question

    Your verbal description doesn't match your table structure:

    USER2 :- A,B,C,D

    vs. UserTags :- Id, TagId, UserId, TagType

    Do you have the data available in a relational structure or are those values concatenated...

  • RE: Pivot to 1 column

    Ok, I see your point.

    Didn't have to deal with those "special characters" in my concatenation scenarios (yet), so I wasn't aware of the side effects. Thanks for clarification. Learned something...

  • RE: Pivot to 1 column

    @paul-2:

    I added the ORDER BY statements to my solution to get the same output like you did and compared both execution plans.

    Unless I'm overlooking something I'd prefer my solution over...

  • RE: Error with comparing date to null

    Unfortunately, we don't know how the final date value of your case statement has to look like...

    Since you're getting rid of the time portion I'm guessing you're just looking for...

Viewing 15 posts - 4,156 through 4,170 (of 5,504 total)