by AskAI

Solutions:

Check these solutions from our community and artificial intelligence:
The solution above is optimal because it uses the MAX function to find the most recent order date for each customer.