I have the following SQL statement
SELECT table1.col1, table2.col2 FROM table1, table2 WHERE table1.t_id = table2.t_id
UNION
SELECT table1.col1 FROM table1 WHERE table1.col4 = null
Problem is, I this syntax is invalid because the 2nd statement doesn't include the same # of columns as the 1st statement.
I can't include table2.col2 in the second statement because I don't need it.
Is there anyway for me to include a default second column in the 2nd statement so that I can get this query to work?