Are you just looking at arithmetic difference between these two columns?
If so use Inner join between two tables to compute the value required
SELECT aaa.a1 - bbb.b1
FROM aaa
JOIN bbb
ON (<aaa.key> = <bbb.key>
..........)
Include all the join conditions in ON clause