How to group by where we have char data type

  • Hi All,

    I have five distinct rows in table, something like

    id col

    100 A

    100 B

    100 C

    100 D

    100 E

    I have to write a sql which gives the output like 100 A,B,C,D,E

  • Just search thissite for "string concatenate for xml path".



    Lutz
    A pessimist is an optimist with experience.

    How to get fast answers to your question[/url]
    How to post performance related questions[/url]
    Links for Tally Table [/url] , Cross Tabs [/url] and Dynamic Cross Tabs [/url], Delimited Split Function[/url]

Viewing 2 posts - 1 through 1 (of 1 total)

You must be logged in to reply to this topic. Login to reply