I've answered this before -
http://groups-beta.google.com/group...oin+sahil+malik&rnum=1&hl=en#e052ed04ab6f4e09
But copy pasted here for your convenience (do read the above thread
though) -
"
Okay so if I understood your question correctly,
You have two tables. They have a common column. And you want to find all
rows, where that particular column value is the same in either table. Right?
Hmm ... Merge is not what you need then .. IMO.
You can however use DataTable.Select. The where clause you formualte for the
the Select method, will have to be formed over a loop from the first table.
So something like ..
Table2.Select("Ticker In (1,2,3,4)")
Where 1,2,3,4 are formed over a loop from Table1.Ticker.
BTW - I must add - DataTable.Select isn't the fastest pony in the stable, so
hopefully you don't have a lot of rows.
There are other ways to do this too - but the above is the most
straightforward. "
- Sahil Malik [MVP]
http://codebetter.com/blogs/sahil.malik/