SQL - INNER JOIN
Identify the error in this self join query:
SELECT e1.name, e2.name FROM employees e1 JOIN employees e2 ON e1.id = e2.id;
SELECT e1.name, e2.name FROM employees e1 JOIN employees e2 ON e1.id = e2.id;
e1.id = e2.id, which matches each row to itself only, not to related rows.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions