Given a table of customer data, write a SQL query to find the names of all customers who live in the same city as the customer with the name 'John Smith'.
The solution above is optimal because it uses a subquery to find the city of John Smith, and then uses that city to find all customers who live in that city.
Evaluated at: 2022-11-11 14:15:37