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. To fetch the data from different tables

To fetch the data from different tables

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

    I have two tables and 3 columns in each table.Each column contains 5 rows T1-- T2-- c1 c2 c3 b1 b2 b3 1 6 11 a b c 2 7 12 d e f 3 8 13 g h i 4 9 14 j k l 5 10 15 m n o I want data as Final Table c1 b2 1 b 2 e 3 h 4 k 5 n Please suggest solution for this. I have to show this in gridview.

    M K 2 Replies Last reply
    0
    • S srikantha_nagaraj

      I have two tables and 3 columns in each table.Each column contains 5 rows T1-- T2-- c1 c2 c3 b1 b2 b3 1 6 11 a b c 2 7 12 d e f 3 8 13 g h i 4 9 14 j k l 5 10 15 m n o I want data as Final Table c1 b2 1 b 2 e 3 h 4 k 5 n Please suggest solution for this. I have to show this in gridview.

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      Are you using winforms DataGridView or webforms GridView. If it is GridView then you need to take this question to the ASP forum.

      Never underestimate the power of human stupidity RAH

      1 Reply Last reply
      0
      • S srikantha_nagaraj

        I have two tables and 3 columns in each table.Each column contains 5 rows T1-- T2-- c1 c2 c3 b1 b2 b3 1 6 11 a b c 2 7 12 d e f 3 8 13 g h i 4 9 14 j k l 5 10 15 m n o I want data as Final Table c1 b2 1 b 2 e 3 h 4 k 5 n Please suggest solution for this. I have to show this in gridview.

        K Offline
        K Offline
        Kschuler
        wrote on last edited by
        #3

        What are the column names, and how does the data in the two tables link to each other? It looks like you are grabbing the first column of the first table and the second column of the second table, so if these are in a database and you are trying to pull the data it will look something like this: SELECT Table1Column1, Table2Column2 FROM Table 1 JOIN Table 2 ON Table1KeyColumn=Table2KeyColumn Is this what you were looking for?

        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