Mysql – Why does this INNER JOIN query return all rows instead of just the one matching?
Question: I have the following table and data setup: CREATE TABLE EMPLOYEE ( empId INTEGER AUTO_INCREMENT PRIMARY KEY, name TEXT NOT NULL, dept TEXT NOT NULL ); INSERT INTO EMPLOYEE(name, dept) VALUES ('Clark', 'Sales'); INSERT INTO EMPLOYEE(name, dept) VALUES ('Dave',…