How many rows does a CROSS JOIN return when the tables contain NULL?
Tables iv_t1 and iv_t2 are joined using a CROSS JOIN. How many rows will the query return? If it fails to run, select “Error.”
Predict the resultJOIN and row countsJuniorAnalystData 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
CROSS JOIN iv_t2 b