Posted by Erland Sommarskog on 12/13/06 22:43
Roy Harvey (roy_harvey@snet.net) writes:
> WHERE LEN(ClaimNumber) = 8
>
> or possibly you will need
>
> WHERE LEN(RTRIM(ClaimNumber)) = 8
Since len() does not count trailing blanks, rtrim is redudant here.
--
Erland Sommarskog, SQL Server MVP, esquel@sommarskog.se
Books Online for SQL Server 2005 at
http://www.microsoft.com/technet/prodtechnol/sql/2005/downloads/books.mspx
Books Online for SQL Server 2000 at
http://www.microsoft.com/sql/prodinfo/previousversions/books.mspx
[Back to original message]
|