I\'m trying to do
SELECT * FROM a, b
However, it doesn\'t return anything if one of the tables is empty. How do I make it so it returns \'a
You should do a left join.
Like this
SELECT * FROM A LEFT JOIN B ON A.ID = B.ID
Then you receive the rows in A and the respective row in B if exists.