Shell script for comparing data of tables

Hi,

I have two databases with same tables on different servers.I need to check the data content in each table and if something is missing, should print that.
I have a tool which takes the snapshot the table structure,index so on and compares with the other server tables snapshot.
Now i need to also include code to compare data.

I wonder can i use the indexes whose snapshot is taken and compare.
Can someone advice how to proceed??

Nessj

can you give some more clarifications. as in desired output and what tool?