I was wondering if there was a way to add leading zeros to numbers when selected that are less than 4 characters and cast as a string.
I appreciate any advice, thanks in advance!
Something like:
SELECT PAD(CAST(last4 as string), 4) as last4 from numbers
Desired output:
1 => 0001
100 => 0100
112 => 0112
15 => 0015