Herbert vs. egreg


Please login or register to vote for this query.

(click on this box to dismiss)

An epic battle, copied from Query #1596.

Drupal Answers Meta

Q&A about the site for Drupal developers and administrators

with fights as (
  select HerbertsAnswer.ParentId as Question,
   HerbertsAnswer.Score as HerbertsScore,
   egregsAnswer.Score as egregsScore
  from Posts as HerbertsAnswer
  inner join Posts as egregsAnswer
   on egregsAnswer.OwnerUserId = 4427 and HerbertsAnswer.ParentId = egregsAnswer.ParentId
  where HerbertsAnswer.ownerUserId = 2478 and HerbertsAnswer.postTypeId = 2

   when HerbertsScore > egregsScore then 'Herbert wins'
   when HerbertsScore < egregsScore then 'egreg wins'
   else 'Tie'
  end as 'Winner',
  Question as [Post Link],
  HerbertsScore as "Herbert's score",
  egregsScore as "egreg's score"
from fights;

Enter Parameters

Switch to main site
loading Hold tight while we fetch your results