Respuestas Largas

1

Please login or register to vote for this query.

(click on this box to dismiss)

Moderators

Q&A for community managers, administrators, and moderators

declare @LargoMinimo int = ##LargoMinimo:int?40##
declare @PuntajeMinimo int = ##PuntajeMinimo:int?0##
-- LargoMinimo: Mínimo de líneas que no son código en la respuesta: 
-- PuntajeMinimo: Mínimo de puntaje de la respuesta: 

select top 500
       OwnerUserId [User Link],
       Id [Post Link],
       Score Puntaje,
       cast(LastActivityDate as date) [Fecha Modif],
       (len(Body) * 0.8 - len(replace(Body,CHAR(10), '')) - len(replace(Body,CHAR(10) + '    ', '')) / 5) Lineas
  from Posts A
-- inner join Posts Q
--    on A.ParentId = Q.Id
 where PostTypeId = 2
   and Score >= @PuntajeMinimo
   and (len(Body) * 0.8 - len(replace(Body,CHAR(10), '')) - len(replace(Body,CHAR(10) + '    ', '')) / 5) >= @LargoMinimo
 order by LastActivityDate desc

Enter Parameters

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