SQLize Online / PHPize Online  /  SQLtest Online

A A A
Share      Blog   Popular
Copy Format Clear
SELECT c1.customer_id AS customer_id_1, c1.first_name AS first_name_1, c1.last_name AS last_name_1, c2.customer_id AS customer_id_2, c2.first_name AS first_name_2, c2.last_name AS last_name_2 FROM customer c1, LEFT OUTER JOIN customer c2 ON c1.customer_id=c2.customer_id WHERE c1.first_name = c2.last_name ORDER BY customer_id_1 asc;

Stuck with a problem? Got Error? Ask ChatGPT!

Copy Clear