List:General Discussion« Previous MessageNext Message »
From:Johan De Meersman Date:June 24 2011 9:46am
Subject:Re: sql query advise
View as plain text  
Have a look at GROUP BY and aggregate functions:

----- Original Message -----
> From: "Norman Khine" <norman@stripped>
> To: mysql@stripped
> Sent: Thursday, 23 June, 2011 4:05:35 PM
> Subject: sql query advise
> hello,
> i have this SQL code in a python programme but i wanted to change the
> SQL so that it returns totals for each date. or do i have to make a
> loop for each date range so that i get the following results which
> then i would like to plot on a graph.
> $ python
> (2L, Decimal('173.958344'), Decimal('159.966349')) 2011-06-23
> (6L, Decimal('623.858200'), Decimal('581.882214')) 2011-06-22
> ...
> here is the code:
> thanks
> norman

Bier met grenadyn
Is als mosterd by den wyn
Sy die't drinkt, is eene kwezel
Hy die't drinkt, is ras een ezel
sql query adviseNorman Khine23 Jun
  • Re: sql query adviseJohan De Meersman24 Jun