查找访问次数最高的POST(包含answer)

0

Please login or register to vote for this query.

(click on this box to dismiss)

Aviation

Q&A for aircraft pilots, mechanics, and enthusiasts

select 
  p.*,
  a.Body as answer
from Posts p
inner join Posts a
on 
  a.id = p.AcceptedAnswerId
where 
  p.PostTypeId = 1
order by 
  p.ViewCount Desc
offset 0 rows
fetch next 50000 rows only

Enter Parameters

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