[eluser]Abu eldahab[/eluser]
Hello All, when i'm testing this query in phpmyadmin it's work fine
Code:
SELECT `tariffdesc` , SUM( `duration` ) AS duration, SUM( `cost` ) AS cost, COUNT( `id_call` ) AS id_call
FROM `calls`
WHERE `caller_id` = 'moh'
GROUP BY `tariffdesc`
the problem i tried to use Active Recored to get same data from my table i failed to make it work
any help with this query ?
Regards