SELECT LEFT(Car, LEN(Car) - 1)
FROM (
SELECT Car + ', '
FROM Cars
FOR XML PATH ('')
) c (Car)
More Related Contents:
- SQL Server – error when creating stored procedure
- How can foreign key constraints be temporarily disabled using T-SQL?
- Does T-SQL have an aggregate function to concatenate strings? [duplicate]
- Datatype for storing ip address in SQL Server
- Is there a way to loop through a table variable in TSQL without using a cursor?
- Maximum size of a varchar(max) variable
- best way to convert and validate a date string
- How to get a date in YYYY-MM-DD format from a TSQL datetime field?
- How do I format a number with commas in T-SQL?
- How to set a default value for an existing column
- Need a datetime column in SQL Server that automatically updates when the record is modified
- SQL Server: combining multiple rows into one row
- How do I find a stored procedure containing ?
- SQL Server: Index columns used in like?
- SQL Server error on update command – “A severe error occurred on the current command”
- Recursive sum in tree structure
- SQL server schema and default schema
- Get ROWS as COLUMNS (SQL Server dynamic PIVOT query)
- SQL Server 2008 – How do i return a User-Defined Table Type from a Table-Valued Function?
- Check if a string contains a substring in SQL Server 2005, using a stored procedure
- FOR XML PATH(”): Escaping “special” characters
- Cannot bulk load. Operating system error code 5 (Access is denied.)
- Instead of trigger in SQL Server loses SCOPE_IDENTITY?
- Does query plan optimizer works well with joined/filtered table-valued functions?
- SQL Server error “Implicit conversion of because the collation of the value is unresolved due to a collation conflict.”
- SQL SERVER – Understanding how MIN(text) works
- Pivot multiple columns based on one column in SQL Server
- @@ERROR and/or TRY – CATCH
- How to calculate difference in hours (decimal) between two dates in SQL Server?
- Cannot delete rows from a temporal history table