Matching variable in 2 datatables

what about not based on current row but the value in both data table?