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 @MinParrafos int = ##MinParrafos:int?10##
declare @PuntajeMinimo int = ##PuntajeMinimo:int?0##
-- MinParrafos: Mínimo de párrafos que no son código: 
-- PuntajeMinimo: Mínimo de puntaje de la respuesta: 
-- UsuarioLike: Nombre de Usuario:

select top 500
       A.OwnerUserId [User Link],
       U.DisplayName,
       A.Score Puntaje,
       A.Id [Post Link],
       convert(varchar, A.LastActivityDate, 111) [Fecha Modif],
       len(A.Body)*7/12 - len(replace(A.Body,'<p>', ''))/3 
         - len(replace(replace(replace(replace(A.Body,'<br>', ''),'<h1>', ''),'<h2>', ''),'<h3>', ''))/4
         [Párrafos]
  from Posts A
  left join Users U
    on A.OwnerUserId = U.Id
 where A.PostTypeId = 2
   and A.Score >= @PuntajeMinimo
   and lower(U.DisplayName) like lower('%##UserName##%')
   and len(A.Body)*7/12 - len(replace(A.Body,'<p>', ''))/3 
         - len(replace(replace(replace(replace(A.Body,'<br>', ''),'<h1>', ''),'<h2>', ''),'<h3>', ''))/4
         >= @MinParrafos
 order by A.LastActivityDate desc

Enter Parameters

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