Output of left/right join between Table A = 1,1,1 and Table B = 1,1,1,1,1
Asked in the Written SQL round stage. Write a PostgreSQL query that compares the two join outputs using the provided tables.
LEFT JOIN and RIGHT JOIN.join_type, total_rows, matched_rows, left_only_rows, and right_only_rows.LEFT JOIN first, followed by RIGHT JOIN.| Column | Type | Description |
|---|---|---|
| row_idPK | INT | Unique identifier for a row in table A |
| value | INT | Value used for joining |
| Column | Type | Description |
|---|---|---|
| row_idPK | INT | Unique identifier for a row in table B |
| value | INT | Value used for joining |