Compare two tables' values