Write a PySpark code to process the following tables: Emp table: Emp id, name, salary, location; Table 2: Empid, emp_designation. Output: Empid, emp_name, emp_designation
Asked in the Techno Managerial stage. Join employee table with designation table.
Empid, emp_name, and emp_designation.Empid in ascending order.| Column | Type | Description |
|---|---|---|
| emp_idPK | INT | Unique employee identifier |
| name | VARCHAR(100) | Employee name |
| salary | NUMERIC(12,2) | Employee salary |
| location | VARCHAR(100) | Employee location |
| Column | Type | Description |
|---|---|---|
| empid | INT | Employee identifier referencing emp.emp_id |
| emp_designation | VARCHAR(100) | Employee designation |