SELECT LEFT(BODY, CHARINDEX('.', BODY) - 1) AS "Body Bef...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Ask Ubuntu

Q&A for Ubuntu users and developers

-- SELECT LEFT(Body, 10) From Posts WHERE CommentCount >2;

-- Selecting everything 
SELECT LEFT(BODY, CHARINDEX('.', BODY) - 1)
AS "Body Before First Period"
FROM Posts
WHERE CommentCount > 2 AND BODY LIKE '%.%'

Enter Parameters

Options:
Switch sites:
loading Hold tight while we fetch your results