I have 2 DataTable
string query = "Select * from " + ServerTableName;
DataTable oDtSeverData = GetDataTable(query);
string dbQuery = "SELECT * from " + LocalSystemTableName;
DataTable oDtLocalSystemData = dataService.GetDataTable(dbQuery);
I want to compare(Row and Column) both the datatable, to get same column(exist in both the datatable) with Unique records(unique Row).
Let me explain in details:
oDtServerData have columns (Column1, Column2, Column3, Column4) with few rows. oDtLocalSystemData have columns (Column1, Column2, Column3) with few rows.
it is possible that oDtServerData can have less columns and oDtLocalSystemData. but in any case I want the column (Column1, Column2, Column3) which is matching in both the datatable with unique rows(data should be unique).
Someone please help me in this and give me some idea with few examples to solve my problems.