select substring(ColumnName, patindex('%[^0]%',ColumnName), 10)
More Related Contents:
- I dont know sql syntax for my table [closed]
- Get top 1 row of each group
- How to calculate age (in years) based on Date of Birth and getDate()
- CROSS JOIN vs INNER JOIN in SQL
- Convert Month Number to Month Name Function in SQL
- Multiple INSERT statements vs. single INSERT with multiple VALUES
- Limit on the WHERE col IN (…) condition
- Select group of rows that match all items in a list
- Add Foreign Key relationship between two Databases
- How to print VARCHAR(MAX) using Print Statement?
- How to assign an exec result to a sql variable?
- Query error with ambiguous column name in SQL
- Why (and how) to split column using master..spt_values?
- Splitting delimited values in a SQL column into multiple rows
- What does =* mean?
- SQL: parse the first, middle and last name from a fullname field
- Why and when a LEFT JOIN with condition in WHERE clause is not equivalent to the same LEFT JOIN in ON? [duplicate]
- SQL Select Upcoming Birthdays
- How can I include null values in a MIN or MAX?
- Stored procedure that exports data into csv files only exports to one file
- Get Start and End Date from Week Number SQL Server
- How to get the identity of an inserted row?
- Get the last day of the month in SQL
- TSQL – How to use GO inside of a BEGIN .. END block?
- SQL take just the numeric values from a varchar
- SQL Server SELECT INTO @variable?
- WITH CHECK ADD CONSTRAINT followed by CHECK CONSTRAINT vs. ADD CONSTRAINT
- Select a column if other column is null
- Sql Server : How to use an aggregate function like MAX in a WHERE clause
- Date serial in SQL?