Need Sql query

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rdssiva
    New Member
    • Apr 2010
    • 2

    Need Sql query

    Table Stru

    ID Name
    1 A
    2 B
    3 C
    4 D

    Want to display in Out put

    Names
    A b C D

    E F G H

    like

    tell me the query
  • debasisdas
    Recognized Expert Expert
    • Dec 2006
    • 8119

    #2
    what have you tried so far ?

    Comment

    • rdssiva
      New Member
      • Apr 2010
      • 2

      #3
      Originally posted by debasisdas
      what have you tried so far ?
      nothing i don't know how to start..plz help me

      Comment

      • ck9663
        Recognized Expert Specialist
        • Jun 2007
        • 2878

        #4
        Use PIVOT/UNPIVOT.

        If it's a simple straight forward long string delimited by a comma or semi-colon, read this.

        Happy Coding!!!

        ~~ CK

        Comment

        Working...