I have data where I need to add leading zeros to it. But the problem is the data type is float. So whenever I add zeros, it automatically omits them. I have tried to add leading zero to it then try to convert it to varchar(50).
I used following query (thanks to Mr. Damien_The_Unbeliever):
select '0' + convert (varchar(50), (wallet_sys)) as wallet_sys from NewSysData1
However the result is showing: 01.72295e+009 instead of showing like this: 01718738312
What should I do?
PS: Some of the sample data are below:
1718738312, 8733983312, 9383879312
I want these to be:
01718738312, 08733983312, 09383879312