SQL, jeśli jest pusty, to
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable
Lonely Lark
SELECT COALESCE(NULLIF(SomeColumn,''), ReplacementColumn)
FROM SomeTable
IF ISNULL(@param) OR @param = '' THEN doSomething...