Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7557729
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T12:12:30+00:00 2026-05-30T12:12:30+00:00

I have a situation where previously a simple DataTable worked (because I was using

  • 0

I have a situation where previously a simple DataTable worked (because I was using an DataAdapter that only hit one table in my relation system). Recently however I’m joining three tables (done in the query that gets sent to my rdb) and it looks can only access one via a DataTable.

Is there a way to iterate over some universal row (i.e. one row that has columns of all tables joined via a foreign key link) element in a DataSet?

Also currently all of this data from three tables is getting put into a single DataTable via OdbcDataAdapter.Fill(myDataTable). I would really like to be able to do something like:

string s1 = myDataTable.Rows[i]["table1.someCol"],
       s2 = myDataTable.Rows[i]["table2.someCol"];

Are either of these possible, and if not how should one handle this situation? Thanks in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T12:12:32+00:00Added an answer on May 30, 2026 at 12:12 pm

    The main problem was that among these several tables there were some columns with the same names. I just distinguished them in the query by doing:

    select table1.id as t1_id, table2 as t2_id ...
    

    This way I don’t have to do anything in the c# code because I can now access them directly from a single DataTable.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have situation, where running a query that filters by an indexed column in
I have a very simple test page that uses XHR requests with jQuery's $.getJSON
I currently have a table in MySQL that stores values normally, but I want
Situation: In my database I have a table in which records may reference other
I have the following situation: In a table I have 4 columns: CommentsTBL: ID
I have a situation where I have two arrays and I use one array(A)
Here's the situation: I have an abstract class with a constructor that takes a
I'm in a situation where I have many connections that are IDLE in transaction.
I have a problem that I tried to ask about previously, but didn't get
I have a situation where a property table holds an address id (from the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.