Is there any SQL function to convert the number in two digit numbers so, I can get 01 for 1.
Asked
Active
Viewed 1.3k times
3 Answers
9
You need to convert the value into string. You can use LPAD()
for this,

John Woo
- 258,903
- 69
- 498
- 492
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