[sql] Convert number to varchar in SQL with formatting