I have two tables look like this:
Year Month
--------------
2021 1
2021 2
2021 3
2021 4
2021 5
2021 6
Planet
-------
Mercury
Venus
Earth
Mars
There is no relation between the two tables but i want to use them to create an SQL selection with a break down of the columns Year and Month based on the values of the table Planet like the following:
Year Month Planet
2021 1 Mercury
2021 1 Venus
2021 1 Earth
2021 1 Mars
2021 2 Mercury
2021 2 Venus
2021 2 Earth
2021 2 Mars
...
Since we cannot simply join the two table is there a way to achieve this?