Database: customers_and_invoices
Question: Count the number of customers who have an account.
SQL:
SELECT count(DISTINCT customer_id) FROM Accounts