I have two fields that I\'m comparing with MySQL\'s function COALESCE(). For example, COALESCE(Field1, Field2). The problem is, Field1 is sometimes blank but no
COALESCE(Field1, Field2)
I know I'm late to the party here, but there is a way to do this while still using COALESCE(). This would then work if your value was NULL or ''.
Select COALESCE(NULLIF(Field1,''), Field2)