This tool will let you query two different databases, each with a custom SQL statement, then compare the data returned from both queries and report the discrepancies.

This story continues at http://www.databasejournal.com/news/article.php/3677586