Write an inner join between an Emp table (emp id, emp name, emp dept id) and a Dept table (dept id, dept name) and describe its output.
Use the provided tables and return only employees with a matching department. Explain which rows are excluded when no matching department exists.
emp_id, emp_name, dept_nameemp_id in ascending order| Column | Type | Description |
|---|---|---|
| emp_idPK | INT | Unique employee identifier |
| emp_name | VARCHAR(100) | Employee name |
| emp_dept_id | INT | Department identifier assigned to the employee |
| Column | Type | Description |
|---|---|---|
| dept_idPK | INT | Unique department identifier |
| dept_name | VARCHAR(100) | Department name |