select surveyname, thequestiontitle,answertitle,sayi,tcevapsay,oran,floor((oran/tcevapsay)).append('%') as sonuc from (select surveyrid.surveyname as surveyname , thequestiontitle , answertitle , count(whois) as sayi, $a[0].tsayi as tcevapsay, (count(whois)*100) as oran from questionresult let $a=(select count(thequestiontitle ) as tsayi from questionresult where thequestiontitle=$parent.current.thequestiontitle) where thequestiontitle is not null group by thequestiontitle,answertitle order by thequestiontitle,answertitle )
orientd wer wery slow response. how can I do ?