Hunter Peress Fri, 10 Feb 2006 16:10:56 -0800
SELECT sum(if(eventtype='click',1,0)) as clicks,sum(if(eventtype='view',1,0)) as view from xy group by somethingelse
note the conditional inside the sum. wheres a good source of information on complex statistical queries like this