Bluehost.com Web Hosting $6.95

Does anyone know how calculate the total value of all the results of a selected field.

This is a discussion on Does anyone know how calculate the total value of all the results of a selected field. within the MySQL Database forums, part of the Database Forums category; Hi Does anyone know how calculate the total value of the results of a selected field....


Go Back   Usenet Forums > Database Forums > MySQL Database

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 12-14-2006
moishyyehuda@gmail.com
 
Posts: n/a
Default Does anyone know how calculate the total value of all the results of a selected field.

Hi

Does anyone know how calculate the total value of the results of a
selected field.

Reply With Quote
  #2 (permalink)  
Old 12-14-2006
moishyyehuda@gmail.com
 
Posts: n/a
Default Re: Does anyone know how calculate the total value of all the results of a selected field.


moishyyehuda@gmail.com wrote:
> Hi
>
> Does anyone know how calculate the total value of the results of a
> selected field from a mysql database.


Reply With Quote
  #3 (permalink)  
Old 12-14-2006
strawberry
 
Posts: n/a
Default Re: Does anyone know how calculate the total value of all the results of a selected field.


moishyyehuda@gmail.com wrote:

> moishyyehuda@gmail.com wrote:
> > Hi
> >
> > Does anyone know how calculate the total value of the results of a
> > selected field from a mysql database.


er... SUM?

Reply With Quote
  #4 (permalink)  
Old 12-14-2006
moishyyehuda@gmail.com
 
Posts: n/a
Default Re: Does anyone know how calculate the total value of all the results of a selected field.


strawberry wrote:
> moishyyehuda@gmail.com wrote:
>
> > moishyyehuda@gmail.com wrote:
> > > Hi
> > >
> > > Does anyone know how calculate the total value of the results of a
> > > selected field from a mysql database.

>
> er... SUM?

sum total my mistake as in john made three payments $1.00 $3.00 $ 2.00
sum total is $6.00

Reply With Quote
  #5 (permalink)  
Old 12-14-2006
strawberry
 
Posts: n/a
Default Re: Does anyone know how calculate the total value of all the results of a selected field.


moishyyehuda@gmail.com wrote:

> strawberry wrote:
> > moishyyehuda@gmail.com wrote:
> >
> > > moishyyehuda@gmail.com wrote:
> > > > Hi
> > > >
> > > > Does anyone know how calculate the total value of the results of a
> > > > selected field from a mysql database.

> >
> > er... SUM?

> sum total my mistake as in john made three payments $1.00 $3.00 $ 2.00
> sum total is $6.00


SELECT SUM(payments) AS total FROM table WHERE name = 'John';

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 03:19 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0