2 つの別個の SQL クエリがあり、それらの違いがわかりません。
SELECT A.AccountName,
T.Total
FROM ACCOUNTS A
LEFT OUTER JOIN (SELECT *
FROM Totals
WHERE PersonID = @PersonID
AND Yr = @Year) T
ON A.AccountID = T.AccountID
ORDER BY AccountName
SELECT A.AccountName,
T.Total
FROM ACCOUNTS A
LEFT OUTER JOIN (SELECT *
FROM Totals) T
ON A.AccountID = T.AccountID
WHERE PersonID = @PersonID
AND Yr = @Year
ORDER BY AccountName
どんな助けでも大歓迎です。