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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Database & SysAdmin
  3. Database
  4. SQL appending result rows

SQL appending result rows

Scheduled Pinned Locked Moved Database
databasehelptutorialquestion
3 Posts 2 Posters 1 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.
  • X Offline
    X Offline
    xoxoxoxoxoxox
    wrote on last edited by
    #1

    Hi, Is there anyway to append query result rows together in SQL? For example, i want to append/concatenate all rows with same id. Table: id column1 column2 column3 1 a b c 1 d e f 2 g h i 2 k l m Result: id column1 column2 column3 column4 column5 column6 1 a b c d e f 2 g h i k l m I'll appreciate any help. Thanks

    S 1 Reply Last reply
    0
    • X xoxoxoxoxoxox

      Hi, Is there anyway to append query result rows together in SQL? For example, i want to append/concatenate all rows with same id. Table: id column1 column2 column3 1 a b c 1 d e f 2 g h i 2 k l m Result: id column1 column2 column3 column4 column5 column6 1 a b c d e f 2 g h i k l m I'll appreciate any help. Thanks

      S Offline
      S Offline
      Stathread
      wrote on last edited by
      #2

      Are you wanting to update the table to have "6" columns with a value in each, do you want to just view the "results" in 6 columns or do you want 1 column with all values "appended" together?

      X 1 Reply Last reply
      0
      • S Stathread

        Are you wanting to update the table to have "6" columns with a value in each, do you want to just view the "results" in 6 columns or do you want 1 column with all values "appended" together?

        X Offline
        X Offline
        xoxoxoxoxoxox
        wrote on last edited by
        #3

        Thank you for your response. I want to view the result in 6 columns.

        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