Q&A for professional and enthusiast programmers
select top 50 * from posthistory where posthistorytypeid=10 and id in (select id from votes where posthistorytypeid = 11)