sql cut 0 out code example Example: trim leading zeros in sql SUBSTRING(str_col, PATINDEX('%[^0]%', str_col+'.'), LEN(str_col))