Check out example codes for "sql cross join". It will help you in understanding the concepts better.

Code Example 1

SELECT * 
FROM table1 
CROSS JOIN table2;

Learn ReactJs, React Native from akashmittal.com