I have a customer table with two columns first_name and last_name.
How can I use LIKE in a query being able to get data from both columns at same time?
For instance:
SELECT CONCAT(first_name, ' ', last_name) as 'full_name'
FROM customer WHERE full_name LIKE 'John D%'
I’ve tried this and it tells me full_name column doesn’t exist.
1 Answer