select (select count(*) from votes where votetypeid = 2) ...

0

Please login or register to vote for this query.

(click on this box to dismiss)

Stack Overflow em Português

Perguntas e respostas para programadores profissionais e entusiastas

select
   (select count(*) from votes where votetypeid = 2) 
   / 
   (select count(*) from votes where votetypeid = 3)
as upDownRatio

Enter Parameters

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