Essayez ceci :


SELECT SUM(A.Reste)
FROM (
SELECT ( Facture.TotalTTC - ISNULL((SELECT Sum(Montant)
FROM Reglement
...