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)

Motor Vehicle Maintenance and Repair Meta

Q&A about the site for mechanics and DIY enthusiast owners of cars, trucks, and motorcycles

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 main site
loading Hold tight while we fetch your results