Preguntas auto Respondidas

0

Please login or register to vote for this query.

(click on this box to dismiss)

Science Fiction and Fantasy

Q&A for science fiction and fantasy enthusiasts

DECLARE @UserId int = ##UserId##

select top 5000 q.creationdate as [Fecha Pregunta], a.creationdate as [Fecha Respuesta], q.OwnerUserId as [User Link],
  q.Id as [Enlace Publicacion], q.Score as 'Puntuación Pregunta', a.Score as 'Puntuación Respuesta'
  from (
    (select Posts.*
      from (Posts join PostTypes on Posts.PostTypeId = PostTypes.Id)
      where PostTypes.Name = 'Question') as q
    join
    (select Posts.*
      from (Posts join PostTypes on Posts.PostTypeId = PostTypes.Id)
      where PostTypes.Name = 'Answer') as a
      on q.Id = a.ParentId)
  where q.OwnerUserId = a.OwnerUserId and q.OwnerUserId=@UserId
order by q.creationdate asc;

Enter Parameters

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