A Virtusa data integration pipeline receives two staging tables containing repeated business keys and missing values. Write a PostgreSQL query that compares how different join types affect the number of returned records.
The tables contain the following values:
INNER JOIN on t1.value = t2.value.LEFT JOIN, RIGHT JOIN, and FULL OUTER JOIN using the same condition.CROSS JOIN.join_type and record_count, in the order listed above.| Column | Type | Description |
|---|---|---|
| value | INT | Join key containing duplicate values and NULL |
| Column | Type | Description |
|---|---|---|
| value | INT | Join key containing duplicate values and NULL |