Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Database & SysAdmin
  3. Database
  4. Need Help to make SQL SERVER Query

Need Help to make SQL SERVER Query

Scheduled Pinned Locked Moved Database
csharpdatabaseasp-netsql-server
4 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Arvind2004
    wrote on last edited by
    #1

    Hi I have a table CandidateTab Which contain the CandidateId and Skill fields and data in this table are in following format. CandidateID Skill --------------------------- 10 VB.net 10 ASP.net 10 C# 11 Oracle 11 SQL SERVER How can I make a query to get result in following format CandidateID Skill 10 VB.net,ASP.net,C# 11 Oracle,SQL SERVER Thanks Arvind

    D A 3 Replies Last reply
    0
    • A Arvind2004

      Hi I have a table CandidateTab Which contain the CandidateId and Skill fields and data in this table are in following format. CandidateID Skill --------------------------- 10 VB.net 10 ASP.net 10 C# 11 Oracle 11 SQL SERVER How can I make a query to get result in following format CandidateID Skill 10 VB.net,ASP.net,C# 11 Oracle,SQL SERVER Thanks Arvind

      D Offline
      D Offline
      dishanf
      wrote on last edited by
      #2

      Is not easy to get the result in one simple query! . At least you must write a cursor to doing this.. D!shan

      1 Reply Last reply
      0
      • A Arvind2004

        Hi I have a table CandidateTab Which contain the CandidateId and Skill fields and data in this table are in following format. CandidateID Skill --------------------------- 10 VB.net 10 ASP.net 10 C# 11 Oracle 11 SQL SERVER How can I make a query to get result in following format CandidateID Skill 10 VB.net,ASP.net,C# 11 Oracle,SQL SERVER Thanks Arvind

        D Offline
        D Offline
        dishanf
        wrote on last edited by
        #3

        Try this also.. its little bit matching to ur prob.. OR is it ok to doing this through cursors? USE pubs GO DECLARE @title_ids varchar(150), @delimiter char SET @delimiter = ',' SELECT @title_ids = COALESCE(@title_ids + @delimiter, '') + title_id FROM titles SELECT @title_ids AS [List of Title IDs] D!shan

        1 Reply Last reply
        0
        • A Arvind2004

          Hi I have a table CandidateTab Which contain the CandidateId and Skill fields and data in this table are in following format. CandidateID Skill --------------------------- 10 VB.net 10 ASP.net 10 C# 11 Oracle 11 SQL SERVER How can I make a query to get result in following format CandidateID Skill 10 VB.net,ASP.net,C# 11 Oracle,SQL SERVER Thanks Arvind

          A Offline
          A Offline
          Arvind2004
          wrote on last edited by
          #4

          THANKS,I will try it Arvind Arvind

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups