halifaxdal (10/27/2016)
It turns out to be something with the original data import, the function str is fine, and no need because the re-import fixed the issue.Sorry for confusing.
The STR() function might not be "fine". It's a whole lot slower than other methods and, depending on the scale, could produce rounded answers because it has a FLOAT backbone. Please see the following article.
[font="Arial Black"]http://www.sqlservercentral.com/articles/T-SQL/71565/[/font]
--Jeff Moden
Change is inevitable... Change for the better is not.