say i have two fields:
table1.title ¦ table2.topic
how do i create an IF statement to select table2.topic if table1.topic is empty, ie NULL?
i thought this might work but i think i am wrong..
IF(table1.title IS NOT NULL, table1.title, table2.topic) AS topic