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 4620500
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T02:34:07+00:00 2026-05-22T02:34:07+00:00

I have two datasets named dataset1,dataset2. I want put the left outer join relation

  • 0

I have two datasets named dataset1,dataset2. I want put the left outer join relation between them.

eg:dataset1 left outer join dataset2

  • 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-22T02:34:08+00:00Added an answer on May 22, 2026 at 2:34 am

    Your question is a bit unclear so there are at least two possible answers.

    If you do indeed have two different DataSets and they need to stay as separate DataSets then you could use LINQ (with Linq to DataSet) to create a left outer join. Here are a couple of blog post explaining how to create left outer joins using LINQ (one and two). Your code will probably look something along the lines of

    var joinResult = from ds1Row in dataset1.Tables["some table"]
                     join ds2Row in dataset2.Tables["some other table"]
                     on ds1Row.Field<T>("some column") equals ds2Row.Field<T>("some other column") into tmpResult
                     from resultRow in tmpResult.DefaultIfEmpty()
                     select new 
                     {
                       //select whatever information you want
                       column1 = ds1Row.Field<T>("name column"),
                       column2 = ds1Row.Field<T>("name column"),
                       column3 = ds2Row.Field<T>("name column")
                     };
    

    If you really meant doing a join between two DataTables or you can combine two DataSets into a single DataSet using the Merge method and then create a relationship between any two tables. Your code will look something along the lines of:

    mergedDataset.Relations.Add("relation name",
    mergedDataset.Tables["some table"].Columns["some column"],
    mergedDataset.Tables["some other table"].Columns["some other column"]);
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a dataset that has two tables in it. I want to do
I have two arrays of System.Data.DataRow objects which I want to compare. The rows
I'm using table adapters and datasets in .NET (version 2.0). I have two tables
I want to perform a JOIN on two Datatables in a Dataset. For example,
I have a many-to-many relation in 3 tables: ProgramUserGroup and Feature are the two
I have a query that UNION 's two somewhat similar datasets, but they both
I'd like to compare two differently spaced datasets in python. I always want to
We have two related tables (inventory, inventoryLocalization) and a t-sql query works on them
I want to store hierarchical, two-dimensional scientific datasets in a relational database (MySQL or
I have two tables whichs relation is expressed in a third n:m table. Lets

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.