SELECT [Post] = 'site://q/'+CAST(P.Id AS nvarchar(10))+'/...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Artificial Intelligence

Q&A for people interested in conceptual questions about life and challenges in a world where "cognitive" functions can be mimicked in purely digital environment

SELECT
  [Post] = 'site://q/'+CAST(P.Id AS nvarchar(10))+'/11107541',
  [Len] = DATALENGTH(P.Body)/2
FROM Posts P
WHERE
  P.PostTypeId = 2
  AND (DATALENGTH(P.Body)/2) < 200
  AND P.ParentId NOT IN (151974)
  AND P.Body COLLATE Latin1_General_BIN LIKE '%</a>%'
  AND P.Body COLLATE Latin1_General_BIN LIKE '%trirand.com/blog%'
  --AND RIGHT(P.Body COLLATE Latin1_General_BIN,10) COLLATE Latin1_General_BIN LIKE '%</a>%'
ORDER BY
  DATALENGTH(P.Body) ASC
;

Enter Parameters

Options:
Switch to meta site
loading Hold tight while we fetch your results