Ver originalselect calldate ,src ,sum(billsec) , count(accountcode) as todas, count(accountcode) as 'entel'from cdr where src = '77000' and calldate between '20110301' and '20110401' and billsec > 0 GROUP BY src DESC