I have 2 tables in MySQL.
table1: id, title
table2: id, title
Now, I would like to see all titles inside both of tables. The problem I have is that if title fields contains anything in both tables, I can see returned values. But if one of these tables be empty, I can not see anything even for another table.
This is my query:
SELECT
t1.title as 'title1',
t2.title as 'title2'
FROM
table1 t1,
table2 t1
What is the problem here?
use union