I would like to know how I can convert the following Oracle SQL code into SQL Server:
TO_CHAR(NUM_COL, '00000')
is
CAST(('00000'+ NUM_COL) AS VARCHAR(MAX))
correct?
Expected Output:
if NUM_COL = 1 => 00001
if NUM_COL = 24 => 00024
if NUM_COL = 383 => 00383