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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T14:28:02+00:00 2026-05-31T14:28:02+00:00

I am stuck with an issue. I have two datatables, with the same table

  • 0

I am stuck with an issue.
I have two datatables, with the same table structure, i need to select data from table1 such that the records arent existing in table2
is it possible to do this in vb.net? if yes then how?

Table1(AAno,Agencyname,location)
Table2(AAno,Agencyname,location)

Criteria:Select AAno,Agencyname,location from table1,table2 where table1.AAno<>table2.AAno

  • 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-31T14:28:04+00:00Added an answer on May 31, 2026 at 2:28 pm

    You could use LINQ-to-DataSet and Enumerable.Except to find the rows in table1 that are not in table2. Assuming that AAno is the primary key:

    Dim t1AAno = table1.AsEnumerable().Select(Function(r) r.Field(Of Int32)("AAno"))
    Dim t2AAno = table2.AsEnumerable().Select(Function(r) r.Field(Of Int32)("AAno"))
    Dim uniqueAAno = t1AAno.Except(t2AAno).ToList()
    Dim tblResult = (From row In table1.AsEnumerable()
                     Join AAno In uniqueAAno
                     On row.Field(Of Int32)("AAno") Equals AAno
                     Select row).CopyToDataTable()
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have an SSIS package that exports data from a table on a SQL
I have a perplexing issue that I can't seem to comprehend... I have two
I am stuck with one issue that I have not been able to solve
Being stuck with a legacy database schema that no longer reflects your data model
Kinda stuck here... I have an application with lets say 5000 rows of data
I have two Tables Let suppose A and B Now suppose the structure of
I have two JSPs where I am displaying some info from database in a
I am new to grails and i got stuck with another issue. I have
I got stuck with the following scenario like I have two timers. If user
I have two AsyncTasks that I am using, one is called up after a

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.