Is there any SQL function to convert the number in two digit numbers so, I can get 01 for 1.
Asked
Active
Viewed 1.2k times
3 Answers
8
You need to convert the value into string. You can use LPAD() for this,
John Woo
- 249,283
- 65
- 481
- 481
0
There is a way to do what you ask. Here is a post that explains it, assuming you are using SQL Server
Formatting Numbers by padding with leading zeros in SQL Server