Ver originalSELECT t2.id1, t2.id2, ABS(t2.CantidadModificada - ISNULL(t1.CantidadOriginal,0))FROM consulta1 t1RIGHT JOIN consulta2 t2 ON t1.id1 = t2.id1 AND t1.id2 = t2.id2