MySQL Lists are EOL. Please join:

List:General Discussion« Previous MessageNext Message »
From:Thomas Seifert Date:September 18 2002 7:46am
Subject:Re: sum column in mysql
View as plain text  
SELECT *,sum(Duration) as durationsum from table1 WHERE condition

should work,

Thomas

On Wed, 18 Sep 2002 10:32:07 +0300 "adi" <adipublic@stripped> wrote:

> 
>  Hi, I have a table table1, with a column "Duration" time type(ex 00:12:30)
> I want to make a sql selection:
> SELECT * from table1 WHERE condition, and after that, to make sum of values
> of column "Duration" and display it.
> Any Help?
> tx
> 
> 
> ---------------------------------------------------------------------
> Before posting, please check:
>    http://www.mysql.com/manual.php   (the manual)
>    http://lists.mysql.com/           (the list archive)
> 
> To request this thread, e-mail <mysql-thread119885@stripped>
> To unsubscribe, e-mail <mysql-unsubscribe-ts77=gmx.de@stripped>
> Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php
> 
Thread
sum column in mysqladi18 Sep
  • Re: sum column in mysqlThomas Seifert18 Sep
  • Re: sum column in mysqlPaul DuBois19 Sep