Your question doesn't make any sense.
If you have 10 records in TABLEA and 10 in TABLEB then what records do you want to compare by this condition "TABLEAVALUEA <> TABLEBVALUEA" ?
Also, do you want to see records when VALUEAs are equal or not equal?
"IF TABLEAVALUEA <> TABLEBVALUEA"
"on TABLEAVALUEA = TABLEBVALUEA"