QUESTION POSED ON: 30 January 2009 I have a physical file that is a numeric 11,0. When I convert this to digits, I get leading zeros. How can I convert this to a character in SQL and get rid of the leading zeros? If it's possible, I would like to convert it in the same field.
>
One solution is to pass the results of the DIGITS function through the STRIP function as I've shown here:
Search and Browse the Expert Answer Center Search and browse more than 25,000 question and
answer pairs from more than 250 TechTarget industry experts.
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.