Write a SQL query to fetch details of an employee from two tables using joins.
Use the employees and departments tables. Return every employee, including employees whose department is missing or does not have a matching department record. Include the employee's department name and office location when available.
employee_id, employee_name, job_title, department_name, and office_locationemployee_id in ascending order| Column | Type | Description |
|---|---|---|
| employee_idPK | INT | Unique employee identifier |
| employee_name | VARCHAR(100) | Employee full name |
| job_title | VARCHAR(100) | Employee job title |
| department_id | INT | Department identifier associated with the employee |
| Column | Type | Description |
|---|---|---|
| department_idPK | INT | Unique department identifier |
| department_name | VARCHAR(100) | Department name |
| office_location | VARCHAR(100) | Primary office location for the department |