LINQ Left Join And Right Join

Posted by raja on Stack Overflow See other posts from Stack Overflow or by raja
Published on 2010-12-21T07:28:57Z Indexed on 2010/12/21 7:53 UTC
Read the original article Hit count: 218

Filed under:

Hi,

I need a help,

I have two dataTable called A and B , i need all rows from A and matching row of B

Ex:

A:                                           B:

User | age| Data                            ID  | age|Growth                                
1    |2   |43.5                             1   |2   |46.5
2    |3   |44.5                             1   |5   |49.5
3    |4   |45.6                             1   |6   |48.5

I need Out Put:

User | age| Data |Growth
------------------------                           
1    |2   |43.5  |46.5                           
2    |3   |44.5  |                          
3    |4   |45.6  |

© Stack Overflow or respective owner

Related posts about linq-to-sql