A Capital One data engineer needs to find customers who have accounts but no transactions in 2025. Which SQL approach is most efficient?
-
A
LEFT JOIN transactions ON customer_id with WHERE transactions.id IS NULL and year = 2025
-
B
INNER JOIN transactions ON customer_id WHERE year = 2025
-
C
SELECT * FROM customers WHERE customer_id NOT IN (SELECT customer_id FROM transactions)
-
D
CROSS JOIN transactions WHERE transactions.year = 2025