SELECT 'http://programmers.stackexchange.com/questions/' ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

SELECT
'http://programmers.stackexchange.com/questions/' + CONVERT(NVARCHAR, p.Id) + '/#comment' + CONVERT(NVARCHAR, c.Id) + '_' + CONVERT(NVARCHAR, p.Id),
c.[Text],
*
FROM Comments c
INNER JOIN Posts p ON p.Id = c.Id
WHERE
  Text LIKE '+1%' AND
  LEN(Text)<50
ORDER BY LEN(Text) ASC

Enter Parameters

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