I need for an sql query to transform int with a value between 1 to 300000 to a number wich has this pattern : always 8 number. For example, 1 become 00000001, 123 become 000