Hello,
I have two fields, but I want to return only the non-empty one.
select firstname, lastname, (if firstname != empty, then firstname else lastname) as name from users;
How do I go about doing something like above. Am not sure what should be inside the round brackets. I don't want to use PHP post-processing.