Asked me to write pyspark code to get result with all columns from datafrmse and 1 column from dataframe2 and SQL query for inner and full join
Use the two tables below for the SQL part. Write queries that return the requested join outputs.
dataframe1 plus status from dataframe2.NULL values where needed.| Column | Type | Description |
|---|---|---|
| idPK | INT | Row identifier |
| customer_name | VARCHAR(100) | Customer name |
| region | VARCHAR(50) | Customer region |
| order_amount | NUMERIC(10,2) | Order amount |
| Column | Type | Description |
|---|---|---|
| idPK | INT | Row identifier |
| status | VARCHAR(30) | Status value to bring into the result |