SyntaxFix
Write A Post
Hire A Developer
Questions
To conditionally check the length of the string, use CASE.
CASE
SELECT CASE WHEN LEN(comments) <= 60 THEN comments ELSE LEFT(comments, 60) + '...' END As Comments FROM myView