in sql query, if cell is empty code example Example: sql if empty then SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn) FROM SomeTable