This topic is locked
[SOLVED]

 Chart problem

2/20/2010 6:15:58 AM
PHPRunner General questions
A
aramuni author

Hi!
I'm using Phprunner 5.2 and need to see a line chart with 3 lines.
I have a table with several registers in one day. When I edit the query of this table in order to see an chart I do that:
SELECT

DATE(DatEve),

Motorista,

SUM(Vel_Max_Plano),

SUM(Vel_Max_Chuva),

SUM(Vel_Max_Bangela)

FROM TLMardan

GROUP BY DATE(DatEve);
That means I want to see how many times the drivers (Motorista) exceeds the max speed in a day in 3 different conditions. The DatEve is a timestamp field.
The query is OK when I go to the Results tab in Query windows, but the chart refuses to show the sum of the fields, showing only zeros from the first until the last day of the roll of registers.
Can anyone knows what's going on?
Tks!

A
aramuni author 2/20/2010

Hi again,
I solved by myself. The solution is:
SELECT

DatEve,

Motorista,

sum(Vel_max_Plano) as Vel_Max_Plano,

sum(Vel_Max_Chuva) as Vel_Max_Chuva,

sum(Vel_Max_Bangela) as Vel_Max_Bangela

FROM TLMardan

group by date(dateve)
Tks anyway...