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. Web Development
  3. ASP.NET
  4. query help needed

query help needed

Scheduled Pinned Locked Moved ASP.NET
databasehelp
3 Posts 3 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.
  • S Offline
    S Offline
    siddisagar
    wrote on last edited by
    #1

    Hi Friends, I am having table with below data District Sate Mandal ------- --- ------ Nalgonda AP Nalgona Tirupathi AP Chithoor Output should be District Sate Mandal Address ------- ----- ------ ------- Nalgonda AP Nalgona Nalgonda,AP,Nalgona Tirupathi AP Chithoor Tirupathi,AP,Chithoor Address should be District,Sate,Mandal

    K B 2 Replies Last reply
    0
    • S siddisagar

      Hi Friends, I am having table with below data District Sate Mandal ------- --- ------ Nalgonda AP Nalgona Tirupathi AP Chithoor Output should be District Sate Mandal Address ------- ----- ------ ------- Nalgonda AP Nalgona Nalgonda,AP,Nalgona Tirupathi AP Chithoor Tirupathi,AP,Chithoor Address should be District,Sate,Mandal

      K Offline
      K Offline
      KittyKit
      wrote on last edited by
      #2

      Check this out http://www.1keydata.com/sql/sql-concatenate.html[^]

      1 Reply Last reply
      0
      • S siddisagar

        Hi Friends, I am having table with below data District Sate Mandal ------- --- ------ Nalgonda AP Nalgona Tirupathi AP Chithoor Output should be District Sate Mandal Address ------- ----- ------ ------- Nalgonda AP Nalgona Nalgonda,AP,Nalgona Tirupathi AP Chithoor Tirupathi,AP,Chithoor Address should be District,Sate,Mandal

        B Offline
        B Offline
        Blue_Boy
        wrote on last edited by
        #3

        select district,sate,mandal,mandal +','+sate+','+district AS [Address] from myTable


        I Love T-SQL "Don't torture yourself,let the life to do it for you." If my post helps you kindly save my time by voting my post. www.aktualiteti.com

        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