Sorted Favorites

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow

Q&A for professional and enthusiast programmers

select 
  p.answerCount,
  'http://stackoverflow.com/questions/' + CAST(p.id AS nvarchar),
  p.title
from 
  votes myfavs
  INNER JOIN Posts P
  ON myfavs.PostId = P.Id 
where 
  myfavs.userid = ##UserId##
  and
  myfavs.votetypeid = '5'
order by 
  p.answerCount

Enter Parameters

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