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

Popular posts from this blog

searchKeyword not working in AngularJS filter -

sequelize.js - Sequelize: sort by enum cases -

user interface - how to replace an ongoing process of image capture from another process call over the same ImageLabel in python's GUI TKinter -