Welcome Guest, Not a member yet? Register   Sign In
need help with sql query using Active Record plz
#1

[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


Messages In This Thread
need help with sql query using Active Record plz - by El Forum - 02-07-2010, 10:35 AM
need help with sql query using Active Record plz - by El Forum - 02-07-2010, 11:17 AM
need help with sql query using Active Record plz - by El Forum - 02-07-2010, 11:56 AM
need help with sql query using Active Record plz - by El Forum - 06-29-2011, 02:51 PM



Theme © iAndrew 2016 - Forum software by © MyBB