1 Replies - 1431 Views - Last Post: 08 July 2008 - 06:32 AM Rate Topic: -----

#1 miki8282  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 3
  • Joined: 25-June 08

Compare first columns in two tables C#

Posted 08 July 2008 - 06:31 AM

hi,

Need help

I have two tables with same columns but not all same rows.

first column in both tables is ID

In first table i defined first column as primary key.

What i need to do is to compare first columns from both tables and if there is no specific ID from table 2 in table 1, i need to add that entire row (with all other cells ) to table1.


Don't want to use for loop, i wan't something with primary key
but not sure how to use it and how to compare this


Help me pleaseeeee

This post has been edited by miki8282: 08 July 2008 - 06:33 AM


Is This A Good Question/Topic? 0
  • +

Replies To: Compare first columns in two tables C#

#2 gabehabe  Icon User is offline

  • GabehabeSwamp
  • member icon




Reputation: 1385
  • View blog
  • Posts: 10,962
  • Joined: 06-February 08

Re: Compare first columns in two tables C#

Posted 08 July 2008 - 06:32 AM

[rules][/rules]
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1