Even tidier:
select string = replace(replace(replace(' select single spaces',' ','<>'),'><',''),'<>',' ')
Output:
select single spaces
More Related Contents:
- How can I remove duplicate rows?
- SQL Server: Examples of PIVOTing String data
- How do I create a unique constraint that also allows nulls?
- Using T-SQL, return nth delimited element from a string
- How do I get list of all tables in a database using TSQL?
- Get first day of week in SQL Server
- What is the use of GO in SQL Server Management Studio & Transact SQL?
- What is the significance of 1/1/1753 in SQL Server?
- SELECT DISTINCT on one column
- Using a if condition in an insert SQL Server
- Altering a column: null to not null
- Confused about UPDLOCK, HOLDLOCK
- Is there a way to simplify a NULL compare of 2 values
- TSQL Try / Catch within Transaction or vice versa?
- What is the maximum number of characters that nvarchar(MAX) will hold?
- TSQL Email Validation (without regex)
- Dynamic SQL results into temp table in SQL Stored procedure
- SQL Server Output Clause into a scalar variable
- How do I flush the PRINT buffer in TSQL?
- TABLOCK vs TABLOCKX
- How to convert number of minutes to hh:mm format in TSQL?
- How do I select last 5 rows in a table without sorting?
- SELECT INTO a table variable in T-SQL
- T-SQL query to show table definition?
- How can I insert binary file data into a binary SQL field using a simple insert statement?
- Cannot find either column “dbo” or the user-defined function or aggregate “dbo.Splitfn”, or the name is ambiguous
- T-SQL XOR Operator
- Include missing months in Group By query
- Random record from a database table (T-SQL)
- What are row, page and table locks? And when they are acquired?