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. Query for display row as column

Query for display row as column

Scheduled Pinned Locked Moved Database
database
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.
  • P Offline
    P Offline
    PrakashBhaskar
    wrote on last edited by
    #1

    Hi, Following is my table id name designation --------------------------- 1 Prakash Des1 2 Prakash Des2 3 Prakash Des3 4 Prakash Des4 5 Sathish Des5 6 Sathish Des6 I want the query which should display the data like following format id name Des1 Des2 Des3 Des4 ------------------------------------------ 1 Prakash Des1 Des2 Des3 Des4 Thanks Warm Regards Prakash-B

    T 1 Reply Last reply
    0
    • P PrakashBhaskar

      Hi, Following is my table id name designation --------------------------- 1 Prakash Des1 2 Prakash Des2 3 Prakash Des3 4 Prakash Des4 5 Sathish Des5 6 Sathish Des6 I want the query which should display the data like following format id name Des1 Des2 Des3 Des4 ------------------------------------------ 1 Prakash Des1 Des2 Des3 Des4 Thanks Warm Regards Prakash-B

      T Offline
      T Offline
      toxcct
      wrote on last edited by
      #2

      this is a display problem select doesn't return "rows", it returns records. but most of the time, we reprensent them horizontally, because of the ease of the view. if you want to display such a thing, you'll have to make the "decomposition" in the displaying job. [edit] will that timorous anonymous guy who vote this to '1' ever show off one day... i persist thinking what i wrote is what to do, and if anybody counter say this, he'll always stay in the dark side of Codeproject, where people act anonymously. :suss: [/edit]


      TOXCCT >>> GEII power
      [toxcct][VisualCalc 2.20][VisualCalc 3.0] -- modified at 8:07 Friday 23rd December, 2005

      P 1 Reply Last reply
      0
      • T toxcct

        this is a display problem select doesn't return "rows", it returns records. but most of the time, we reprensent them horizontally, because of the ease of the view. if you want to display such a thing, you'll have to make the "decomposition" in the displaying job. [edit] will that timorous anonymous guy who vote this to '1' ever show off one day... i persist thinking what i wrote is what to do, and if anybody counter say this, he'll always stay in the dark side of Codeproject, where people act anonymously. :suss: [/edit]


        TOXCCT >>> GEII power
        [toxcct][VisualCalc 2.20][VisualCalc 3.0] -- modified at 8:07 Friday 23rd December, 2005

        P Offline
        P Offline
        PrakashBhaskar
        wrote on last edited by
        #3

        Hi, Can you guide me how to make a decomposition Thanks Warm Regards Prakash-B

        T 1 Reply Last reply
        0
        • P PrakashBhaskar

          Hi, Can you guide me how to make a decomposition Thanks Warm Regards Prakash-B

          T Offline
          T Offline
          toxcct
          wrote on last edited by
          #4

          well, i don't know how you display your data, but here are the hints. when you get the set of records from SELECT, you then know the number of records returned. then you can extend your grid depending on that. but i cannot say more, as i don't know which language you're using, nor your database schema... but i hope you see the job to do...


          TOXCCT >>> GEII power
          [toxcct][VisualCalc 2.20][VisualCalc 3.0]

          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