Is there a way in SQL where you can format a number the way you want it like those other programming languages? Like for example, number 123, I like it to become 0000123. Andel
maingel@hotmail.com
Thank you guys for your response. I tried to REPLICATE the '0' but it doesn't work for numbers, only varchars.
Sample data:
123 should become 00000123.00
2222 should become 00002222.00
12345 should become 00012345.00
99.9 should become 00000099.90
888.88 should become 00000888.88
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.