How to combine two unrelated tables in Mysql

Seehyung Lee picture Seehyung Lee · Jul 13, 2013 · Viewed 7k times · Source

There are two tables that are not related to each other(No foreign keys). How to show them together in MySQL?

TABLE1

enter image description here

TABLE2

enter image description here

Result

enter image description here

Answer

Iswanto San picture Iswanto San · Jul 13, 2013

You can use this too:

SELECT t2.date, t1.name
FROM table1 t1
CROSS JOIN table2 t2