SQL Server Information and Resources Bookmark this page

SQLINFO.net is a Community Service from DataExpressions makers of dbOrchestra©

Google
 

 

 

 


SQL Server Examples

SQL DML

String Functions

Stored Procedures

SQL Views

SQL Table Basics


Using the LTRIM() and RTRIM() SQL Server Functions

Using RTRIM() to remove trailing spaces

SELECT  TOP 100
        RTRIM(firstname) + ' ' + lastname AS " RTRIM"
FROM    Students      

Using LTRIM() to remove leading spaces

SELECT  TOP 100
        LTRIM(disenrollment_type)         
FROM    disenrollmentTypes   

 

 



Copyright 2006-2007 by DataExpressions --- All Rights Reserved            dbOrchestra - SQL Server home page