sql server - SQL Getting 2 digit numbers from row_number Over () function -


is possible numbers 2 digits using following function?

row_number () over(order uh.stuff) hsn 

i want query return 01 , 02 , 03 instead of 1,2,3...

do this:

right('0' + convert(varchar,row_number() on (order uh.stuff)), 2) hsn 

Comments

Popular posts from this blog

javascript - Unusual behaviour when drawing lots of images onto a large canvas -

how can i manage url using .htaccess in php? -

javascript - Chart.js - setting tooltip z-index -