i. BillingAddress,
i. Total
FROM
invoices AS i
INNER JOIN
customers AS c
ON i.CustomerId = c.CustomerId
Левое внешнее соединение
SELECT
i. InvoiceId,
c. CustomerId,
c. Name,
c. Address,
i. InvoiceDate,
i. BillingAddress,
i. Total
FROM
invoices AS i
LEFT OUTER JOIN
customers AS c