How many rows does a FULL JOIN return?
Tables iv_t1 and iv_t2 are joined using a FULL JOIN. How many rows will the query return? If the query fails to run, select “Error.”
Predict the resultJOIN and row countsMiddleAnalystData EngineerBackendQA
Input data · iv_t1
| x |
|---|
| 1 |
| 1 |
| 2 |
| NULL |
Input data · iv_t2
| x |
|---|
| 1 |
| 2 |
| 2 |
| 3 |
| NULL |
Query
SELECT a.x AS a_x, b.x AS b_x
FROM iv_t1 a
FULL JOIN iv_t2 b ON a.x = b.x
ORDER BY a.x, b.x