This query executes in a fraction of a second:
SELECT customers.customers_id, customers_firstname, customers_lastname, customers.customers_email_address, max(date_purchased)
FROM customers join orders on customers.customers_id = orders.customers_id
group by customers.customers_id;
If I change the join to a left join, it seems to hang. I tried limiting it to 10 records, and it still takes 9 seconds. What am I doing wrong?
Thanks in advance.