Associate
- Joined
- 11 Mar 2005
- Posts
- 1,168
Afternoon all,
I have an sql problem which I cant sort out.. mainly 'cos I dont know anything!
My table, data_out contains 7 columns: with 31313 rows of data...
on_link
to_time
count
mean_speed
length_c
fuel_consumption
carbon_dio
I'd like to construct a query that does as below
FOR each instance of to_time (distinct??)
SUM count * length_c as output_1
AND
SUM fuel_consumption as output_2
AND
SUM mean_speed as output_3
Right.. that probably makes absolutely no sense whatsoever - but any ideas?
Possibly point me in the right direction!
Cheers
I have an sql problem which I cant sort out.. mainly 'cos I dont know anything!
My table, data_out contains 7 columns: with 31313 rows of data...
on_link
to_time
count
mean_speed
length_c
fuel_consumption
carbon_dio
I'd like to construct a query that does as below
FOR each instance of to_time (distinct??)
SUM count * length_c as output_1
AND
SUM fuel_consumption as output_2
AND
SUM mean_speed as output_3
Right.. that probably makes absolutely no sense whatsoever - but any ideas?
Possibly point me in the right direction!
Cheers