Two tables were given with duplicates and NULL values; predict the output of INNER, LEFT, RIGHT and FULL OUTER JOIN
Asked in the Round 1 stage. Write a PostgreSQL query that returns the output of all four joins using table_a and table_b, matching rows on join_key.
join_type, both row identifiers, both join keys, and both values.| Column | Type | Description |
|---|---|---|
| row_idPK | INT | Unique row identifier |
| join_key | INT | Value used to match rows |
| value | VARCHAR(50) | Value stored in table_a |
| Column | Type | Description |
|---|---|---|
| row_idPK | INT | Unique row identifier |
| join_key | INT | Value used to match rows |
| value | VARCHAR(50) | Value stored in table_b |