question - urgent - thanks in advance

  • urgent development question:

    i have a table something like this

    name,

    student id,

    subjects

    in subjects column we have subjects taken by each student seperated by semicolumn.i.e. "english;social study;crafts" etc.

    now, I want output table which is seperated by each subject...i.e.

    before

    ------

    name | student id | subjects

    stdA| 123| english;social study

    stdB| 234| social study;crafts

    After

    -----

    name | student id | subjects

    stdA| 123| english

    stdA| 123| social study

    stdB| 234| social study

    stdB| 234| social crafts

    ....

    Please help me as this is urgent.

    Thanks.

  • Please don't cross post. It just wastes peoples time and fragments replies.

    No replies to this thread please. Direct replies to: http://www.sqlservercentral.com/Forums/Topic853117-145-1.aspx

    Gail Shaw
    Microsoft Certified Master: SQL Server, MVP, M.Sc (Comp Sci)
    SQL In The Wild: Discussions on DB performance with occasional diversions into recoverability

    We walk in the dark places no others will enter
    We stand on the bridge and no one may pass
  • Sorry GilaMonster

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

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