Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hello All,
I need a help
I getting wrong output below,ending with -from-
I need concatenate Destination and From city name.
expected output ex: andaman-and-nicobar-from-pune
I am using this formula I getting syntax error
if(Des='',if(From<>'',lower(Replace(Des&'-from-'&From), '-from-', '', 2),lower(Des)),'') as [Des-From],
you can try a few things, try using isnull(Des) and for From or use len(Des)=0
sometimes using the test against 0 len string does not work depending on the data
Can you try to eliminate the records while load where From field is null
Try this
if(From<>'',
lower(Replace(Des&'-from-'&From, '-from-', ''), '-') as [Des-From]
)