Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adjusting for alltrim
Message
 
 
To
08/02/2009 20:20:39
General information
Forum:
Microsoft SQL Server
Category:
SQL syntax
Environment versions
SQL Server:
SQL Server 2005
Application:
Web
Miscellaneous
Thread ID:
01380195
Message ID:
01380213
Views:
63
This message has been marked as the solution to the initial question of the thread.
I dunno about ANSI compliance but for VFP and MS SQL Server you can use
LEN(RTRIM(LTRIM(Temp.Link)))
-- in MS SQL Server you can get the same result with just
LEN(Temp.Link)
>Is there a way to adjust this SQL command to be ANSI compliant?
>
>
>SELECT Temp.Numero,Temp.Link,Temp.TotalLink,Link.URL,LEN(ALLTRIM(Temp.Link)) AS LenLink
> FROM (SELECT MIN(Link.Numero) AS Numero,Link.Link,COUNT(*) AS TotalLink
> FROM Link GROUP BY 2) AS Temp
> INNER JOIN Link ON Temp.Numero=Link.Numero
> ORDER BY LenLink DESC
>
>
>The problem is with the alltrim command.
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform