replace - CAST, My query don't give correct values. -
i'm merging 2 fields 1 value. i'm replacing dots commas below query.
replace(cast(testmin varchar)+'-'+ cast(testmax varchar), '.', ',') testvalue
this works a charm long testmin isn't zero. when it's 0 that's result get.
as example have
testmin 0,00 testmax 100
with above query the query returns 0. if change testmin 1 query returns correct value 1-100.
any ideas on why this?
have tried using concat instead of '+' ?
Comments
Post a Comment