in reply to DBI compare columns problem

What's not working?

What do you expect this code to do?

$mb_award = $dbh

Why are you performing the same query multiple times? Do you expect new data to be entered in the database between the Perl statements?

Are you certain that your database operations are succeeding?

Are you receiving the data you expect?

Have you considered placeholders? (Your queries look vulnerable to a SQL injection attack.)