with statement if result empty how to know sql code example
Example: sql if empty then
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable