Explain the different types of joins in SQL and when you would use each one.
Write a PostgreSQL query that demonstrates common join types using the provided tables. Return one row for each join type and its resulting row count.
join_type, row_count| Column | Type | Description |
|---|---|---|
| employee_idPK | INTEGER | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| department_id | INTEGER | Department assigned to the employee |
| Column | Type | Description |
|---|---|---|
| department_idPK | INTEGER | Unique department identifier |
| department_name | VARCHAR(100) | Department name |