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

c# - SelectList with Dictionary, add values to the Dictionary after it's assigned to SelectList -

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

ios - I get the error Property '...' not found on object of type '...' -